|
|
@ -1,10 +1,11 @@ |
|
|
|
{% extends "base.html" %} |
|
|
|
{% block content %} |
|
|
|
{% if articles %} |
|
|
|
<section id="content"> |
|
|
|
{% for article in articles_page.object_list %} |
|
|
|
{# First item #} |
|
|
|
{% if loop.index <= 3 %} |
|
|
|
<div id="featured" class="body"> |
|
|
|
<div class="featured"> |
|
|
|
<article> |
|
|
|
<h1 class="entry-title p-name"> |
|
|
|
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> |
|
|
@ -29,15 +30,15 @@ |
|
|
|
</article> |
|
|
|
</div><!-- /#featured --> |
|
|
|
{% if loop.index == 3 %} |
|
|
|
<section id="content" class="body"> |
|
|
|
<section id="list"> |
|
|
|
<h1>Other articles</h1> |
|
|
|
<hr /> |
|
|
|
<ol id="posts-list" class="hfeed"> |
|
|
|
<ul id="posts-list"> |
|
|
|
{% endif %} |
|
|
|
{# other items #} |
|
|
|
{% else %} |
|
|
|
{% if loop.first %} |
|
|
|
<section id="content" class="body"> |
|
|
|
<section id="other"> |
|
|
|
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}"> |
|
|
|
{% endif %} |
|
|
|
<li> |
|
|
@ -73,7 +74,7 @@ |
|
|
|
{% endif %} |
|
|
|
{% if loop.last %} |
|
|
|
{% if loop.length > 1 or articles_page.has_other_pages() %} |
|
|
|
</ol><!-- /#posts-list --> |
|
|
|
</ul><!-- /#posts-list --> |
|
|
|
{% if articles_page.has_other_pages() %} |
|
|
|
{% include 'pagination.html' %} |
|
|
|
{% endif %} |
|
|
@ -81,18 +82,8 @@ |
|
|
|
{% endif %} |
|
|
|
{% 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 %} |
|
|
|
</section> |
|
|
|
{% endif %} |
|
|
|
{% endblock content %} |
|
|
|
|
|
|
|
<section id="content"> |
|
|
|
{% block content_title %} |
|
|
|
<h2>All articles</h2> |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|