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:
commit
9e5b31ad75
1 changed files with 4 additions and 0 deletions
|
@ -37,12 +37,16 @@ Table of contents
|
||||||
{% for tag in page.taxonomies.tags %}
|
{% for tag in page.taxonomies.tags %}
|
||||||
<a href="/tags/{{ tag | slugify }}">#{{ tag }}</a>
|
<a href="/tags/{{ tag | slugify }}">#{{ tag }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if page.taxonomies.categories %}
|
||||||
{% for category in page.taxonomies.categories %}
|
{% for category in page.taxonomies.categories %}
|
||||||
<a href="/categories/{{ category | slugify }}">+{{ category }}</a>
|
<a href="/categories/{{ category | slugify }}">+{{ category }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if page.taxonomies.contexts %}
|
||||||
{% for context in page.taxonomies.contexts %}
|
{% for context in page.taxonomies.contexts %}
|
||||||
<a href="/contexts/{{ context | slugify }}">@{{ context }}</a>
|
<a href="/contexts/{{ context | slugify }}">@{{ context }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endblock footer %}
|
{% endblock footer %}
|
Loading…
Reference in a new issue