mirror of https://github.com/lxndrblz/anatole.git

morandan
04.59.2021 a9fe5e385cb7146b000da74e45f5d1a7166255b0
add-toc
1 files modified
13 ■■■■■ changed files
README.md 13 ●●●●● patch | view | raw | blame | history
README.md
@@ -624,6 +624,19 @@
Additionally, you can include the `{{% loading %}}` shortcode, which will display a spinner on the page that will be redirected. If it does not display, make sure that unsafe mode is enabled for `markup.goldmark.renderer`.
### Enable Table of Contents
You can enable a table of contents on a per post basis by adding the following into the front matter of the posts your want the table of contents to appear on.
```md
+++
...
toc = true
+++
```
Only "## H2 Headings" and "### H3 Headings" will appear in the table of contents.
## License
Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE).