diff options
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 %} |