templates/page: make categories and contexts optional
This commit is contained in:
parent
7daa254c0b
commit
1e0153eb2f
1 changed files with 4 additions and 0 deletions
|
@ -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 %}
|
Loading…
Reference in a new issue