mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Fix archetype paths
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -173,7 +173,7 @@ title = "post from custom archetype"
|
|||||||
As an example of archetypes in practice, the following is the `functions` archetype from the Hugo docs:
|
As an example of archetypes in practice, the following is the `functions` archetype from the Hugo docs:
|
||||||
|
|
||||||
{{< code file="archetypes/functions.md" >}}
|
{{< code file="archetypes/functions.md" >}}
|
||||||
{{< readfile file="/themes/gohugoioTheme/archetypes/functions.md" >}}
|
{{< readfile file="/archetypes/functions.md" >}}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ Once you have cloned the Hugo repository, you can create a new function via the
|
|||||||
hugo new functions/newfunction.md
|
hugo new functions/newfunction.md
|
||||||
```
|
```
|
||||||
|
|
||||||
The archetype for `functions` according to the Hugo theme is as follows:
|
The archetype for `functions` according to the Hugo docs is as follows:
|
||||||
|
|
||||||
{{< code file="archetypes/functions.md" >}}
|
{{< code file="archetypes/functions.md" >}}
|
||||||
{{< readfile file="/themes/gohugoioTheme/archetypes/functions.md">}}
|
{{< readfile file="/archetypes/functions.md">}}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
#### New Function Required Fields
|
#### New Function Required Fields
|
||||||
|
|||||||
Reference in new issue
Block a user