summaryrefslogtreecommitdiff
path: root/blog/plt/page.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/page.html
parentb171347f739b2ada7960ad50bcba47e898d890d2 (diff)
simplify templates
Diffstat (limited to 'blog/plt/page.html')
-rw-r--r--blog/plt/page.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/blog/plt/page.html b/blog/plt/page.html
index a98338e..6128d3b 100644
--- a/blog/plt/page.html
+++ b/blog/plt/page.html
@@ -1,4 +1,6 @@
{%extends "base.html"%}
+{%block html_lang%}{{page.lang}}{%endblock html_lang%}
+{%block head_title%}{{page.title}}{%endblock head_title%}
{%block content%}
<h1>{{page.title}}</h1>
@@ -11,12 +13,7 @@
{%if page.mdate is not none%}
<p>Modified: {{page.mdate}}</p>
{%endif%}
- <div class="article-tags">
- <p>Tags:
- {%for t in page.tags%}
- <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
- {%endfor%}
- </p>
- </div>
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(page.tags)}}
</div>
{%endblock content%}