Include
Hextra include shortcode for inlining content from another page.
1 minute read
Includes the rendered content of another page inline. This shortcode must use the percent-delimiter syntax.
{{% hextra/include "include-snippet" %}}
Parameters:
| Parameter | Description | Default |
|---|---|---|
| positional | Page path relative to the content directory | (required) |
Example (included from a separate page):
This paragraph was pulled in from a separate page using the hextra/include shortcode. It demonstrates how you can compose content from multiple sources into a single page.
- Included content supports full Markdown formatting.
- Lists,
code, and emphasis all render correctly.