How to create a table of contents to Jekyll blog post?

前端 未结 6 894
不思量自难忘°
不思量自难忘° 2020-12-04 21:30

If I have a page/post in Jekyll with headers, is it possible to auto-generate a table-of-contents/outline for navigation? Something akin to the top matter of a Wikipedia art

6条回答
  •  情书的邮戳
    2020-12-04 22:27

    All these methods specified didn't work for me for the GitHub pages blog, also I wanted to simply use the liquid for the purpose.

    Here is the detailed description.

    How to add toc in Jekyll blog

    Here is how it looks.

提交回复
热议问题