aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Alaa <aa@4b.cx>2023-04-05 18:42:04 +0000
committerAhmed Alaa <aa@4b.cx>2023-04-05 18:42:04 +0000
commit9e5b31ad75de3932181252c9dd4ca74e3d73d2a7 (patch)
tree8d5793265d2dcb964146557eb5c02c41cdbda6ff
parent0b00b22a14b25534c3b2ed15a030aa1cdfc865ea (diff)
parent1e0153eb2f8ea16b54923f0c495ea2f9d5bdf53e (diff)
Merge branch 'optional-categories' into 'main'
templates/page: make categories and contexts optional See merge request 4bcx/no-style-please!2
-rw-r--r--templates/page.html4
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