Skip to content

Styles for generated ToC #50

Answered by allejo
warbe-maker asked this question in Q&A
Discussion options

You must be logged in to vote

is it possible to have a layout like the one offered by dafi/jekyll-toc-generator

Yes, it is possible. This snippet only focuses on generating the actual content for the table of contents. The design of it is left up entirely to the user of this project. All that's needed is some CSS and applying classes to elements 😄

Which adds to my question: That's a js solution which you said is not possible ?!?

I'm not sure where I said a JS solution isn't possible but that's not true. In the README I specify you can't use custom Jekyll plug-ins (written in Ruby) on GitHub Pages. I also specify that you can use a JS approach, but if users have JS disabled or you're using automated link checkers t…

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 #50 on December 14, 2020 02:43.