Skip to content

jekyll-toc together with jekyll-anchor-heading #37

Answered by allejo
xplosionmind asked this question in Q&A
Discussion options

You must be logged in to vote

Don't chain the output together, you'll get weird results. Use them separately and feed the content variable to each snippet individually.

<!-- Place your TOC somewhere -->
{% include toc.html html=content %}

<!-- Render your content like normally -->
{% include anchor_headings.html html=content %}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by allejo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #37 on December 14, 2020 02:55.