mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
docs: don't publish unnecessary config files
This commit is contained in:
parent
af29d89995
commit
a7321b918c
5 changed files with 8 additions and 8 deletions
|
@ -200,7 +200,7 @@ title = "Hugo Relearn Theme"
|
||||||
# just for this documentation to expose our config in the docs
|
# just for this documentation to expose our config in the docs
|
||||||
[[module.mounts]]
|
[[module.mounts]]
|
||||||
source = 'config'
|
source = 'config'
|
||||||
target = 'static/config'
|
target = 'assets/config'
|
||||||
# just for this documentation to expose the GitHub hero image in the docs
|
# just for this documentation to expose the GitHub hero image in the docs
|
||||||
[[module.mounts]]
|
[[module.mounts]]
|
||||||
source = '../images'
|
source = '../images'
|
||||||
|
|
|
@ -10,14 +10,14 @@ Each Hugo page **has to define** a [frontmatter](https://gohugo.io/content/front
|
||||||
The values reflect example options. The defaults can be taken from the [annotated example](#annotated-frontmatter-options) below.
|
The values reflect example options. The defaults can be taken from the [annotated example](#annotated-frontmatter-options) below.
|
||||||
|
|
||||||
{{< multiconfig fm=true >}}
|
{{< multiconfig fm=true >}}
|
||||||
{{% include "cont/frontmatter/frontmatter.toml" %}}
|
{{% include "frontmatter.toml" %}}
|
||||||
{{< /multiconfig >}}
|
{{< /multiconfig >}}
|
||||||
|
|
||||||
## Annotated Frontmatter Options
|
## Annotated Frontmatter Options
|
||||||
|
|
||||||
````toml {title="toml"}
|
````toml {title="toml"}
|
||||||
+++
|
+++
|
||||||
{{% include "cont/frontmatter/frontmatter.toml" %}}+++
|
{{% include "frontmatter.toml" %}}+++
|
||||||
````
|
````
|
||||||
|
|
||||||
## Some Detailed Examples
|
## Some Detailed Examples
|
||||||
|
|
|
@ -13,14 +13,14 @@ While the examples are using shortcodes with named parameter you are free to use
|
||||||
{{% tab title="shortcode" %}}
|
{{% tab title="shortcode" %}}
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{%/* include file="shortcodes/INCLUDE_ME.md" */%}}
|
{{%/* include file="shortcodes/include/INCLUDE_ME.md" */%}}
|
||||||
````
|
````
|
||||||
|
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
{{% tab title="shortcode (positional)" %}}
|
{{% tab title="shortcode (positional)" %}}
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{%/* include "shortcodes/INCLUDE_ME.md" */%}}
|
{{%/* include "shortcodes/include/INCLUDE_ME.md" */%}}
|
||||||
````
|
````
|
||||||
|
|
||||||
{{% /tab %}}
|
{{% /tab %}}
|
||||||
|
@ -29,7 +29,7 @@ While the examples are using shortcodes with named parameter you are free to use
|
||||||
````go
|
````go
|
||||||
{{ partial "shortcodes/include .html" (dict
|
{{ partial "shortcodes/include .html" (dict
|
||||||
"page" .
|
"page" .
|
||||||
"file" "shortcodes/INCLUDE_ME.md"
|
"file" "shortcodes/include/INCLUDE_ME.md"
|
||||||
)}}
|
)}}
|
||||||
````
|
````
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ The included files can even contain Markdown and will be taken into account when
|
||||||
### Arbitrary Content
|
### Arbitrary Content
|
||||||
|
|
||||||
````go
|
````go
|
||||||
{{%/* include "shortcodes/INCLUDE_ME.md" */%}}
|
{{%/* include "shortcodes/include/INCLUDE_ME.md" */%}}
|
||||||
````
|
````
|
||||||
|
|
||||||
{{% include "shortcodes/INCLUDE_ME.md" %}}
|
{{% include "shortcodes/include/INCLUDE_ME.md" %}}
|
Loading…
Reference in a new issue