From b7caba4e99effe0aa8f2fca74dc33a2f4495924a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Mar 2019 23:42:23 +0100 Subject: Use lighter style consistent with documentation --- themes/lv2/templates/index.html | 55 +++++++++++++++++++---------------------- themes/lv2/templates/page.html | 2 +- 2 files changed, 27 insertions(+), 30 deletions(-) (limited to 'themes/lv2/templates') diff --git a/themes/lv2/templates/index.html b/themes/lv2/templates/index.html index 0fad03c..4a2822a 100644 --- a/themes/lv2/templates/index.html +++ b/themes/lv2/templates/index.html @@ -1,35 +1,32 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} -{% block content %} +{% block content %} {% if articles %} - {% for article in articles %} + {% for article in articles_page.object_list %} +
+ +

{{ article.title }}

+
+ +
{{ article.summary }}
+
+
+ {% endfor %} {# For article #} + {% endif %} - {# First item #} - {% if loop.first %} -
-

{{ article.title }}

- {{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} - {% if not HIDE_DATE %}{% endif %} -
+ {% include "pagination.html" %} -
- {{ 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 %} diff --git a/themes/lv2/templates/page.html b/themes/lv2/templates/page.html index 6adfc0d..107092e 100644 --- a/themes/lv2/templates/page.html +++ b/themes/lv2/templates/page.html @@ -16,7 +16,6 @@

{{ page.title }}

{% endif %} - {{ page.content }} {% if page.gallery %}
{% for photo_set in page.gallery.photos %} @@ -25,4 +24,5 @@
{% endif %} + {{ page.content }} {% endblock %} -- cgit v1.2.1