diff options
author | Ekaitz Zárraga <ekaitz.zarraga@protonmail.com> | 2019-03-28 13:09:33 +0100 |
---|---|---|
committer | Ekaitz Zárraga <ekaitz.zarraga@protonmail.com> | 2019-03-28 13:09:33 +0100 |
commit | 040fa162f87ccf23e9b2f363326bce84c57d70f8 (patch) | |
tree | ff44f7fa8e6f7fa5451bea7b9d1200adf1a85d49 /themes/elenq/templates | |
parent | 92ddea0bf4e8f939bdce69d65dd15069e774e624 (diff) |
add themes page to theme
Diffstat (limited to 'themes/elenq/templates')
-rw-r--r-- | themes/elenq/templates/tag.html | 23 | ||||
-rw-r--r-- | themes/elenq/templates/tags.html | 15 |
2 files changed, 32 insertions, 6 deletions
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 %} +<section id="content"> +{% block content_title %} +<h2>Articles in the {{ tag }} tag</h2> +{% endblock %} + +<ol id="post-list"> +{% for article in dates_page.object_list | reverse %} + <li><article class="hentry"> + <header> + <h3 class="entry-title"><a class="text-nodeco-black" href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h3> + <time class="published" datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time> </header> + <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> + <footer><a href="{{SITEURL}}/{{article.url}} ">Read More</a></footer> + </article></li> +{% endfor %} +</ol><!-- /#posts-list --> +{% if dates_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +</section><!-- /#content --> +{% 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 %} - <h1>Tags for {{ SITENAME }}</h1> - {%- for tag, articles in tags|sort %} - <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> +<section id="content"> + <h2>Tags</h2> + + <p> + {% for tag, articles in tags|sort %} + <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag.name }}</a> ({{ articles|count }})<br> {% endfor %} + </p> +</section> {% endblock %} |