Merge pull request #289 from bbinet/fix_index_template

Fix index.html template
This commit is contained in:
Alexis Metaireau 2012-03-31 18:08:30 -07:00
commit af2b588ea6
28 changed files with 177 additions and 102 deletions

View file

@ -19,7 +19,7 @@
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
<ol id="posts-list" class="hfeed">
{% endif %}
{# other items #}
{% else %}
@ -44,17 +44,17 @@
or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
{% endfor %}
{% if loop.length > 1 or articles_page.has_previous() %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% endif %}
{% if loop.last %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% endif %}
{% endfor %}
{% else %}
<section id="content" class="body">
<h2>Pages</h2>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</section>
{% endif %}
{% endblock content %}