Streamline full page sidebar with blog post sidebar
Add the table of content in same way with proper linking to sections (content elements) and summary feature.
This commit is contained in:
parent
41c70fde4b
commit
ed2f6b2bc4
1 changed files with 14 additions and 10 deletions
|
@ -40,16 +40,20 @@
|
||||||
|
|
||||||
<f:section name="TableOfContent">
|
<f:section name="TableOfContent">
|
||||||
<nav>
|
<nav>
|
||||||
<h1>Table of Content</h1>
|
<details open>
|
||||||
<ol>
|
<summary>
|
||||||
<f:for each="{pageContent}" as="contentEntry">
|
<h2>Table of Content</h2>
|
||||||
<f:if condition="{contentEntry.data.header}">
|
</summary>
|
||||||
<li>
|
<ol>
|
||||||
<a href="#c{contentEntry.data.uid}">{contentEntry.data.header}</a>
|
<f:for each="{pageContent}" as="contentEntry">
|
||||||
</li>
|
<f:if condition="{contentEntry.data.header}">
|
||||||
</f:if>
|
<li>
|
||||||
</f:for>
|
<a href="#{contentEntry.data.header -> f:format.id()}">{contentEntry.data.header}</a>
|
||||||
</ol>
|
</li>
|
||||||
|
</f:if>
|
||||||
|
</f:for>
|
||||||
|
</ol>
|
||||||
|
</details>
|
||||||
</nav>
|
</nav>
|
||||||
</f:section>
|
</f:section>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue