Skip to content

Commit

Permalink
Render menu captions when provided
Browse files Browse the repository at this point in the history
In my previous PR, I added CSS style for an element that does not get
rendered, presumably because of this template override.
  • Loading branch information
greg0ire committed Oct 4, 2024
1 parent 5c8f89a commit a75d02d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/guides/body/menu/menu.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<div class="toc">
{% if node.caption %}
<p class="caption">{{ renderNode(node.caption) }}</p>
{% endif -%}
{% include "body/menu/menu-level.html.twig" %}
</div>

0 comments on commit a75d02d

Please sign in to comment.