Merge branch 'optional-categories' into 'main'

templates/page: make categories and contexts optional

See merge request 4bcx/no-style-please!2
This commit is contained in:
Ahmed Alaa 2023-04-05 18:42:04 +00:00
commit 9e5b31ad75

View file

@ -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 %}