I’m new to wonderful grav CMS and would like to add a menu from anchors to the top of a page with lots of contents divided by h3 headlines.
I know that there’s a plugin called grav-plugin-anchors which I already have installed in my site. But I’m not sure where to put the code for the menu. In the readme of the plugin it says:
If you want to use the generated links to also generate a menu from these anchors, just put the function below in the template file Twig.
As a grav newbie I’m not sure where exactly to place the snippet in the blog.html.twig. I have tried several places but I always got an error. Maybe somebody has a hint for that?