diff options
| author | Clayton Craft <clayton@craftyguy.net> | 2023-02-10 09:56:24 -0800 |
|---|---|---|
| committer | Clayton Craft <clayton@craftyguy.net> | 2023-02-10 09:56:24 -0800 |
| commit | 1e0153eb2f8ea16b54923f0c495ea2f9d5bdf53e (patch) | |
| tree | 60ba0752673ed1fcda80c7243a28bc46323c98a5 | |
| parent | 7daa254c0b2be4055a40ef320f44e7d066dca753 (diff) | |
templates/page: make categories and contexts optional
| -rw-r--r-- | templates/page.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 %} <a href="/tags/{{ tag | slugify }}">#{{ tag }}</a> {% endfor %} +{% if page.taxonomies.categories %} {% for category in page.taxonomies.categories %} <a href="/categories/{{ category | slugify }}">+{{ category }}</a> {% endfor %} +{% endif %} +{% if page.taxonomies.contexts %} {% for context in page.taxonomies.contexts %} <a href="/contexts/{{ context | slugify }}">@{{ context }}</a> {% endfor %} {% endif %} +{% endif %} </p> {% endblock footer %}
\ No newline at end of file |
