jekyll-toc together with jekyll-anchor-heading #37
Answered
by
allejo
xplosionmind
asked this question in
Q&A
-
Hello, I couldn’t find any documentation to make this Liquid script work together with jekyll-anchor-headings. I’m relatively new to Jekyll and Liquid so I prefer not to mess my website up by attempting to implement both the features. What do you suggest me to do? Should I include one include into another? Does it make sense? How can I do it? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
allejo
May 25, 2020
Replies: 1 comment
-
Don't chain the output together, you'll get weird results. Use them separately and feed the <!-- Place your TOC somewhere -->
{% include toc.html html=content %}
<!-- Render your content like normally -->
{% include anchor_headings.html html=content %} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
allejo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't chain the output together, you'll get weird results. Use them separately and feed the
content
variable to each snippet individually.