hugo-geekdoc/exampleSite/content/shortcodes/toc-tree.md

14 lines
407 B
Markdown
Raw Normal View History

---
title: ToC-Tree
---
The `toc-tree` shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.
```tpl
{{</* toc-tree */>}}
```
## Example
2021-01-03 22:48:34 +01:00
As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the [ToC Tree](/toc-tree/) section.