Skip to content

Commit e07dfd7

Browse files
committed
allow toc on listing pages
1 parent 125a599 commit e07dfd7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/pages/listing.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
{% block filters %}{% endblock %}
1919
</div>
2020
</div>
21+
{% block toc %}
22+
{% if page.displayOnThisPageNavigation is defined and page.displayOnThisPageNavigation and toc is defined %}
23+
{{ include('@W3CWebsiteTemplates/components/styles/toc.html.twig') }}
24+
{% endif %}
25+
{% endblock %}
2126
{% block list %}{% endblock %}
2227
{% block pagination %}
2328
{% include '@W3CWebsiteTemplates/components/styles/pagination.html.twig' %}

0 commit comments

Comments
 (0)