aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-13 00:07:57 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-13 00:07:57 +0200
commitf7dc814f669481362d650590eb90f5ca2d433493 (patch)
tree9a052d7539d724dc80e5ada7f28f81a65ba88b0f /templates
parent35798b0bd657443d5a8517a618c4aa83b7c41d8c (diff)
downloadblog-f7dc814f669481362d650590eb90f5ca2d433493.tar.gz
blog-f7dc814f669481362d650590eb90f5ca2d433493.zip
index: added tags (taxonomy) to the page overview list
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index f0a781e..c1cd4e8 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -75,6 +75,15 @@
</h1>
<span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span>
+
+ <!-- johannst: START | attach `tags` to each post listing -->
+ {% if page.taxonomies.tags %}
+ {% for tag in page.taxonomies.tags %}
+ <a href="{{ get_url(path="/tags/") }}/{{ tag }}">#{{ tag }}</a>
+ {% endfor %}
+ {% endif %}
+ <!-- johannst: END -->
+
</div>
{% endfor %}
</div>