From fc6e82f8f35bc178fc01c01f75bd3fc090d22a99 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 18 Oct 2023 20:00:35 -0600 Subject: add link to tags --- templates/index.html | 2 +- templates/section.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') 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 @@
  • Published On: {{post.date}}
  • Tags: {% for tag in post.tags %} - {{ tag }}{{ ", " if not loop.last else "" }} + {{ tag }}{{ ", " if not loop.last else "" }} {% endfor %} 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 @@
  • Published On: {{post.date}}
  • Tags: {% for tag in post.tags %} - {{ tag }}, + {{ tag }}{{ ", " if not loop.last else "" }} {% endfor %} {% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit v1.2.3