hugo-theme-relearn/exampleSite/content/shortcodes/include.en.md
Sören Weber 42c8ec549b
code highlighter: avoid unstyled blocks in docs #32
The new highlighter does not work to well if no syntax is specified
for the code block / code fence / indention.
See https://github.com/gohugoio/hugo/pull/8917
2021-08-23 23:32:34 +02:00

508 B

title description
Include 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 %}}