mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
parent
2a5deb0534
commit
c4215dd154
3 changed files with 39 additions and 0 deletions
14
exampleSite/content/shortcodes/INCLUDE_ME.md
Normal file
14
exampleSite/content/shortcodes/INCLUDE_ME.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
You can add:
|
||||||
|
|
||||||
|
- multiple paragraphs
|
||||||
|
- bullet point lists
|
||||||
|
- _emphasized_, **bold** and even **_bold emphasized_** text
|
||||||
|
- [links](https://example.com)
|
||||||
|
- other shortcodes besides `expand`
|
||||||
|
- etc.
|
||||||
|
|
||||||
|
```
|
||||||
|
...and even source code
|
||||||
|
```
|
||||||
|
|
||||||
|
> the possiblities are endless
|
24
exampleSite/content/shortcodes/include.en.md
Normal file
24
exampleSite/content/shortcodes/include.en.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
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 %}}
|
|
@ -14,6 +14,7 @@ Some markup
|
||||||
````
|
````
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
|
|
||||||
{{% notice note %}}
|
{{% notice note %}}
|
||||||
|
|
Loading…
Reference in a new issue