mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 05:00:39 +00:00
cleanup include shortcode docs
This commit is contained in:
parent
8b10c81053
commit
9192ade60b
@ -87,7 +87,7 @@ In some situations, it can be helpful to include Markdown files that also contai
|
|||||||
|
|
||||||
1. First you need to create a directory **within** your content directory. For this example site `_includes` is used.
|
1. First you need to create a directory **within** your content directory. For this example site `_includes` is used.
|
||||||
2. Place your Markdown files within the `_includes` folder e.g. `/_includes/include-page.md`. Make sure to name it `*.md`.
|
2. Place your Markdown files within the `_includes` folder e.g. `/_includes/include-page.md`. Make sure to name it `*.md`.
|
||||||
3. Include the page using `{{</* include file="/_includes/include-page.md" */>}}`.
|
3. Include the page using `{{</* include file="/_includes/include-page.md" type="page" */>}}`.
|
||||||
|
|
||||||
Resulting structure should look like this:
|
Resulting structure should look like this:
|
||||||
|
|
||||||
@ -97,11 +97,4 @@ _includes/
|
|||||||
└── _index.md
|
└── _index.md
|
||||||
```
|
```
|
||||||
|
|
||||||
Specify the page include:
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
|
||||||
```tpl
|
|
||||||
{{</* include file="/_includes/include-page.md" type="page" */>}}
|
|
||||||
```
|
|
||||||
|
|
||||||
{{< include file="/_includes/include-page.md" type="page" >}}
|
{{< include file="/_includes/include-page.md" type="page" >}}
|
||||||
|
Loading…
Reference in New Issue
Block a user