I'm trying to have an auto-generated menu like explained in the docs.
Problem:
Too few arguments to function Grav\Plugin\AnchorsTwigExtension::anchorsFunction(), 2 passed in XXX\user\plugins\anchors\twig\AnchorsTwigExtension.php on line 63 and exactly 3 expected
What I did:
I've added {{ anchors(page.content, 'li') }} in my .md file
I've added this in the frontmatter of the same .md file
process:
twig: true
It seems like I'm missing an argument, but even if I write {{ anchors(page.content, 'li', '') }} I have the same error.
Hello,
I'm trying to have an auto-generated menu like explained in the docs.
Problem:
What I did:
{{ anchors(page.content, 'li') }}
in my.md
file.md
fileIt seems like I'm missing an argument, but even if I write
{{ anchors(page.content, 'li', '') }}
I have the same error.Am I missing something ?
PS: Everything is up to date