From 040fa162f87ccf23e9b2f363326bce84c57d70f8 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Thu, 28 Mar 2019 13:09:33 +0100 Subject: add themes page to theme --- themes/elenq/templates/tag.html | 23 +++++++++++++++++++++++ themes/elenq/templates/tags.html | 15 +++++++++------ 2 files changed, 32 insertions(+), 6 deletions(-) (limited to 'themes/elenq') diff --git a/themes/elenq/templates/tag.html b/themes/elenq/templates/tag.html index e69de29..3ac4e11 100644 --- a/themes/elenq/templates/tag.html +++ b/themes/elenq/templates/tag.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +

Articles in the {{ tag }} tag

+{% endblock %} + +
    +{% for article in dates_page.object_list | reverse %} +
  1. +{% endfor %} +
+{% if dates_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +
+{% endblock content %} diff --git a/themes/elenq/templates/tags.html b/themes/elenq/templates/tags.html index b5d1482..393a983 100644 --- a/themes/elenq/templates/tags.html +++ b/themes/elenq/templates/tags.html @@ -1,10 +1,13 @@ {% extends "base.html" %} - -{% block title %}{{ SITENAME }} - Tags{% endblock %} - +{% block title %}Tags — {{ SITENAME }}{% endblock %} {% block content %} -

Tags for {{ SITENAME }}

- {%- for tag, articles in tags|sort %} -
  • {{ tag }} ({{ articles|count }})
  • +
    +

    Tags

    + +

    + {% for tag, articles in tags|sort %} + {{ tag.name }} ({{ articles|count }})
    {% endfor %} +

    +
    {% endblock %} -- cgit v1.2.3