mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 13:33:34 +08:00
25 lines
504 B
Markdown
25 lines
504 B
Markdown
|
---
|
||
|
title: Include
|
||
|
description: "Displays content from other markdown files"
|
||
|
---
|
||
|
|
||
|
The include shortcode includes other files from your project inside of the current file. This can even contain markdown and will be taken into account when generating the table of contents.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
````
|
||
|
{{%/* include "<file>" */%}}
|
||
|
````
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
### Arbitray content
|
||
|
|
||
|
{{% include "shortcodes/INCLUDE_ME.md" %}}
|
||
|
|
||
|
{{% expand "Show markup" %}}
|
||
|
````
|
||
|
{{%/* include "shortcodes/INCLUDE_ME.md" */%}}
|
||
|
````
|
||
|
{{% /expand %}}
|