Skip to content

Commit

Permalink
allow toc on listing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-gui committed Nov 18, 2024
1 parent 125a599 commit e07dfd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/pages/listing.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
{% block filters %}{% endblock %}
</div>
</div>
{% block toc %}
{% if page.displayOnThisPageNavigation is defined and page.displayOnThisPageNavigation and toc is defined %}
{{ include('@W3CWebsiteTemplates/components/styles/toc.html.twig') }}
{% endif %}
{% endblock %}
{% block list %}{% endblock %}
{% block pagination %}
{% include '@W3CWebsiteTemplates/components/styles/pagination.html.twig' %}
Expand Down

0 comments on commit e07dfd7

Please sign in to comment.