mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-28 07:30:37 +00:00
cleanup include shortcode docs
This commit is contained in:
parent
e9a07f78d2
commit
8a741d82d8
@ -80,7 +80,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.
|
||||
2. To prevent the theme from embedding the page in the navigation, create a file `_includes/_index.md` and add `GeekdocHidden: true` to the front matter.
|
||||
3. Place your Markdown files within the `_includes` folder e.g. `/_includes/include-page.md`. Make sure to name it `*.md`.
|
||||
4. Include the page using `{{</* include file="/_includes/include-page.md" */>}}`.
|
||||
4. Include the page using `{{</* include file="/_includes/include-page.md" type="page" */>}}`.
|
||||
|
||||
Resulting structure should look like this:
|
||||
|
||||
@ -90,11 +90,4 @@ _includes/
|
||||
└── _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" >}}
|
||||
|
Loading…
Reference in New Issue
Block a user