hydecorp / hydejack

A boutique Jekyll theme for hackers, nerds, and academics
https://hydejack.com
Other
1.39k stars 792 forks source link

[Question] how to display 'table of content'? #318

Open hawkoli1987 opened 1 year ago

hawkoli1987 commented 1 year ago

First of all, a big thank you for the elegant design and user-friendly features. It's especially helpful to person completely new to webpage design like myself!

From the documentation, it seems really easy to create a TOC, just by adding two lines of code in the markdown:

1. this ordered seed list will be replaced by the toc {:toc}

However, it never gets displayed on my page, while the other features (e.g. notes and quotes) works perfectly.

I have installed the 'jekyll-toc' plugin in gemfile, and added it in '_config.yml' plugin as well, but it still doesn't show up.

Are there any other basic steps that I've missed out?

hawkoli1987

cbirkenbeul commented 1 year ago

Hi, did you marked the list items as headlines? You should put a # as h1 or ## as h2. Regular markdown.

tgaff commented 1 year ago

I found that this didn't work if you were using the GFM markdown processor. Instead I had to use the theme default kramdown.

# _config.yml
markdown: kramdown