diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-18 20:00:35 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-10-18 20:00:35 -0600 |
commit | 1c90a3f7fb822b88195e3a9b966899720b9ae188 (patch) | |
tree | 4851bae8f7309a6a16f0a41658027c3e95eb8a03 /templates | |
parent | fd0a889870954fd700cbc0184189950ed0859663 (diff) |
add link to tags
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 2 | ||||
-rw-r--r-- | templates/section.html | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/index.html b/templates/index.html index a83e6c3..9f68a00 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,7 +15,7 @@ <li>Published On: {{post.date}}</li> <li>Tags: {% for tag in post.tags %} - {{ tag }}{{ ", " if not loop.last else "" }} + <a href='/tags/{{tag}}.html'>{{ tag }}</a>{{ ", " if not loop.last else "" }} {% endfor %} </ul> 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 %} |