Skip to content

Commit

Permalink
Fix sections in jinja
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 4, 2015
1 parent 6060f81 commit 096cd9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nikola/data/themes/base-jinja/templates/list.tmpl
Expand Up @@ -8,8 +8,11 @@
</header>
{% if items %}
<ul class="postlist">
{% for text, link in items %}
{% for text, link, count in items %}
<li><a href="{{ link }}">{{ text }}</a>
{% if count %}
({{ count }})
{% endif %}
{% endfor %}
</ul>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/sectionindex.tmpl
Expand Up @@ -16,6 +16,6 @@
<p class="feedlink"><a href="{{ _link('section_index_atom', posts[0].section_slug()) }}" type="application/atom+xml">{{ messages('Updates') }}</a></p>
{% endif %}
</header>
{{ parent.content() }}
{{ super() }}
</article>
{% endblock %}
1 change: 1 addition & 0 deletions scripts/jinjify.py
Expand Up @@ -14,6 +14,7 @@
["{% if any(post.is_mathjax for post in posts) %}", '{% if posts|selectattr("is_mathjax")|list %}'],
["json.dumps(title)", "title|tojson"],
["{{ parent.extra_head() }}", "{{ super() }}"],
["{{ parent.content() }}", "{{ super() }}"],
["prefix='\\", "prefix='"],
["og: http://ogp.me/ns# \\", "og: http://ogp.me/ns#"],
["article: http://ogp.me/ns/article# \\", "article: http://ogp.me/ns/article#"],
Expand Down

0 comments on commit 096cd9f

Please sign in to comment.