summaryrefslogtreecommitdiff
path: root/blog/plt/tag.html
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-06-05 01:21:59 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-06-05 01:21:59 -0600
commit0e91926ff40b3df1914375165633bb703c176558 (patch)
treee324842456b2651f5bf384f9c91222de975c3f03 /blog/plt/tag.html
parentb171347f739b2ada7960ad50bcba47e898d890d2 (diff)
simplify templates
Diffstat (limited to 'blog/plt/tag.html')
-rw-r--r--blog/plt/tag.html18
1 files changed, 5 insertions, 13 deletions
diff --git a/blog/plt/tag.html b/blog/plt/tag.html
index 50b221f..2203f33 100644
--- a/blog/plt/tag.html
+++ b/blog/plt/tag.html
@@ -1,18 +1,10 @@
{%extends "base.html"%}
+{%block html_lang%}en{%endblock html_lang%}
+{%block head_title%}Posts filtered by {{tag[0]}}{%endblock head_title%}
{%block content%}
<h1>Posts filtered by {{tag[0]}}</h1>
- <h2>Articles</h2>
- <ul>
- {%for p in tag_pages%}
- {%if loop.previtem%}
- {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
- <h3>{{p.cdate_list_sep}}</h3>
- {%endif%}
- {%else%}
- <h3>{{p.cdate_list_sep}}</h3>
- {%endif%}
- <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
- {%endfor%}
- </ul>
+ {%import "page_list.html" as page_list%}
+ {{page_list.print(tag_pages)}}
+
{%endblock content%}