summaryrefslogtreecommitdiff
path: root/templates/section.html
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-18 20:00:35 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-18 20:00:35 -0600
commitfc6e82f8f35bc178fc01c01f75bd3fc090d22a99 (patch)
treecb5a6d6ce6e2455c49d4a5a6e2a1c269d0c7d195 /templates/section.html
parent6e1c9bd4ef3658d2fde164c518f8df4c7e57f2bc (diff)
add link to tags
Diffstat (limited to 'templates/section.html')
-rw-r--r--templates/section.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/section.html b/templates/section.html
index 2a9e863..f713ad8 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% block title %}Section{% endblock %}
+{% block title %}{% if title is defined %}{{title}}{% else %}Section{% endif %}{% endblock %}
{% block body %}
@@ -15,11 +15,11 @@
<li>Published On: {{post.date}}</li>
<li>Tags:
{% for tag in post.tags %}
- {{ tag }},
+ <a href='/tags/{{tag}}.html'>{{ tag }}</a>{{ ", " if not loop.last else "" }}
{% endfor %}
</ul>
{% endfor %}
</ul>
-{% endblock %} \ No newline at end of file
+{% endblock %}