Hi, i want to include in some pages a html anchor menu like you may know it from wikipedia. I want to include it into my twig-tamplate, but the file is always different.
Now in my noob logic i would have solved it like this:
{% include 'partials/menues/(page.header.menuid).md' %}
–> Yeah that doesn’t work.
Second option would be to place a menu.md alongside with the text.md inside the page folder and include it by default. But i have no idea how to solve that.
the menu.md looks like this:
<div class="menu" markdown="1">
+ [**bulletpoint 1**](#headline-1)
+ [subpoint 1](#sub-headline-1)
+ [subpoint 2](#sub-headline-2)
+ [subpoint 3](#sub-headline-3)
+ [**subpage 1**](/cathegory/subpage/)
+ [subpage-anchor 1](/cathegory/subpage#headline-1)
+ [subpage-anchor 1](/cathegory/subpage#headline-2)
+ [subpage-anchor 1](/cathegory/subpage#headline-3)
+ [sub-subpage 1](/cathegory/subpage/secondpage-1)
+ [**Bulletpoint 2**](#headline-2)
etc. etc. etc.
</div>
Any Ideas?
THX!
Niko