LukasJoswiak / etch

A simple, responsive writing theme for Hugo.
https://lukasjoswiak.github.io/etch/
MIT License
295 stars 166 forks source link

Add table of contents shortcode #3

Closed LukasJoswiak closed 4 years ago

LukasJoswiak commented 4 years ago

Adds the ability for a table of contents to be added in a document using a table of contents shortcode. To include the table of contents, include the shortcode {{< toc >}} in the Markdown file where you would like the table of contents to appear.

Customizable by changing the Markdown renderer settings: https://gohugo.io/getting-started/configuration-markup/#table-of-contents.