2010-08-18 15:10:43 +02:00
|
|
|
{% extends "base.html" %}
|
2010-09-24 20:30:09 +01:00
|
|
|
{% block content_title %}{% endblock %}
|
2013-08-03 16:17:26 -07:00
|
|
|
{% block content %}
|
2010-11-05 02:05:00 +00:00
|
|
|
{% if articles %}
|
2013-08-03 16:17:26 -07:00
|
|
|
{% for article in articles_page.object_list %}
|
2011-02-17 19:03:23 +00:00
|
|
|
|
|
|
|
|
{# First item #}
|
|
|
|
|
{% if loop.first and not articles_page.has_previous() %}
|
|
|
|
|
<aside id="featured" class="body">
|
|
|
|
|
<article>
|
2013-08-03 16:17:26 -07:00
|
|
|
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
|
2011-02-17 19:03:23 +00:00
|
|
|
{% include 'article_infos.html' %}{{ article.content }}{% include 'comments.html' %}
|
2010-12-19 03:34:19 +00:00
|
|
|
</article>
|
2011-02-17 19:03:23 +00:00
|
|
|
</aside><!-- /#featured -->
|
|
|
|
|
{% if loop.length > 1 %}
|
|
|
|
|
<section id="content" class="body">
|
|
|
|
|
<h1>Other articles</h1>
|
|
|
|
|
<hr />
|
2012-03-30 14:20:55 +02:00
|
|
|
<ol id="posts-list" class="hfeed">
|
2011-02-17 19:03:23 +00:00
|
|
|
{% endif %}
|
|
|
|
|
{# other items #}
|
2013-08-03 16:17:26 -07:00
|
|
|
{% else %}
|
2015-02-22 16:27:18 +08:00
|
|
|
{% if loop.first %}
|
2011-02-17 19:03:23 +00:00
|
|
|
<section id="content" class="body">
|
|
|
|
|
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
|
|
|
|
|
{% endif %}
|
2013-08-03 16:17:26 -07:00
|
|
|
<li><article class="hentry">
|
2010-08-18 15:10:43 +02:00
|
|
|
<header>
|
2012-06-08 09:56:55 -07:00
|
|
|
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
|
|
|
|
|
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
|
2010-08-18 15:10:43 +02:00
|
|
|
</header>
|
2013-08-03 16:17:26 -07:00
|
|
|
|
2010-09-24 20:30:09 +01:00
|
|
|
<div class="entry-content">
|
2011-01-05 16:22:52 +01:00
|
|
|
{% include 'article_infos.html' %}
|
2010-08-18 15:10:43 +02:00
|
|
|
{{ article.summary }}
|
2010-10-30 00:58:32 +01:00
|
|
|
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
|
2010-12-19 03:34:19 +00:00
|
|
|
{% include 'comments.html' %}
|
2010-08-18 15:10:43 +02:00
|
|
|
</div><!-- /.entry-content -->
|
2011-02-17 19:03:23 +00:00
|
|
|
</article></li>
|
|
|
|
|
{% endif %}
|
2012-03-30 14:20:55 +02:00
|
|
|
{% if loop.last %}
|
2015-06-20 20:47:37 -06:00
|
|
|
{% if loop.length > 1 or articles_page.has_other_pages() %}
|
2014-02-12 12:42:27 +01:00
|
|
|
</ol><!-- /#posts-list -->
|
2015-06-20 20:47:37 -06:00
|
|
|
{% if articles_page.has_other_pages() %}
|
|
|
|
|
{% include 'pagination.html' %}
|
|
|
|
|
{% endif %}
|
2014-02-12 12:42:27 +01:00
|
|
|
</section><!-- /#content -->
|
|
|
|
|
{% endif %}
|
2012-03-30 14:20:55 +02:00
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
2010-11-05 02:05:00 +00:00
|
|
|
{% else %}
|
2013-08-03 16:17:26 -07:00
|
|
|
<section id="content" class="body">
|
2010-11-05 02:05:00 +00:00
|
|
|
<h2>Pages</h2>
|
2012-03-30 14:20:55 +02:00
|
|
|
{% for page in PAGES %}
|
|
|
|
|
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
|
|
|
|
{% endfor %}
|
2010-11-05 02:05:00 +00:00
|
|
|
</section>
|
|
|
|
|
{% endif %}
|
2010-08-18 15:10:43 +02:00
|
|
|
{% endblock content %}
|