From 1e0153eb2f8ea16b54923f0c495ea2f9d5bdf53e Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 10 Feb 2023 09:56:24 -0800 Subject: [PATCH] templates/page: make categories and contexts optional --- templates/page.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/page.html b/templates/page.html index aab169f..35221dc 100644 --- a/templates/page.html +++ b/templates/page.html @@ -37,12 +37,16 @@ Table of contents {% for tag in page.taxonomies.tags %} #{{ tag }} {% endfor %} +{% if page.taxonomies.categories %} {% for category in page.taxonomies.categories %} +{{ category }} {% endfor %} +{% endif %} +{% if page.taxonomies.contexts %} {% for context in page.taxonomies.contexts %} @{{ context }} {% endfor %} {% endif %} +{% endif %}

{% endblock footer %} \ No newline at end of file