From 9839a49f36ee0b637b08b76e8ed5560409c9db3b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Nov 2014 00:29:11 -0500 Subject: Simplify theme. --- themes/lv2/templates/index.html | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'themes/lv2/templates/index.html') diff --git a/themes/lv2/templates/index.html b/themes/lv2/templates/index.html index 29ba7d6..0fad03c 100644 --- a/themes/lv2/templates/index.html +++ b/themes/lv2/templates/index.html @@ -1,4 +1,35 @@ -{% extends "article_list.html" %} +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} + {% if articles %} + {% for article in articles %} -{% block canonical_rel %}{% endblock %} + {# First item #} + {% if loop.first %} +
+

{{ article.title }}

+ {{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} + {% if not HIDE_DATE %}{% endif %} +
+
+ {{ article.content }} +
+ {% if loop.length > 1 %} +
+

Tous les articles

+
    + {% endif %} + {# other items #} + {% else %} +
  1. {{ article.title }}
  2. + {% endif %} + {% endfor %} + {% if loop.length > 1 %} +
+
+ {% endif %} + {% else %} + No articles. + {% endif %} +{% endblock content %} -- cgit v1.2.1