Do not show toc for empty header, e.g. admonition
This commit is contained in:
parent
2ce9f792d6
commit
1c632f6a09
1 changed files with 5 additions and 3 deletions
|
@ -58,9 +58,11 @@
|
||||||
</li>
|
</li>
|
||||||
<f:alias map="{contentSections: pageSections.0.content}">
|
<f:alias map="{contentSections: pageSections.0.content}">
|
||||||
<f:for each="{contentSections}" as="contentEntry">
|
<f:for each="{contentSections}" as="contentEntry">
|
||||||
<li>
|
<f:if condition="{contentEntry.data.header}">
|
||||||
<a href="#c{contentEntry.data.uid}">{contentEntry.data.header}</a>
|
<li>
|
||||||
</li>
|
<a href="#c{contentEntry.data.uid}">{contentEntry.data.header}</a>
|
||||||
|
</li>
|
||||||
|
</f:if>
|
||||||
</f:for>
|
</f:for>
|
||||||
</f:alias>
|
</f:alias>
|
||||||
<f:if condition="{acknowledgements}">
|
<f:if condition="{acknowledgements}">
|
||||||
|
|
Loading…
Reference in a new issue