TOC & Include
TOC Shortcode
Section titled “TOC Shortcode”Insert a table of contents anywhere in your content:
{{</* toc */>}}This renders an auto-generated list of all headings on the page. Useful when you want the TOC in a specific location rather than the default sidebar position.
Include Shortcode
Section titled “Include Shortcode”Include the content of another file into your page:
{{</* include "shared/disclaimer.md" */>}}Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| First positional | string | Required. Path to the file to include |
Use Cases
Section titled “Use Cases”- Shared content — Include a standard disclaimer, license, or notice across multiple pages
- Modular writing — Break long documents into separate files and compose them
- Reusable snippets — Keep common code examples or instructions in one place
Example
Section titled “Example”## License
{{</* include "partials/mit-license.md" */>}}