mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 00:17:29 +00:00
Remove superfluous shortcode param
This commit is contained in:
1 parent
2a0544757c
commit
45ec53fe00
27 files changed
+49
-49
No files matched your search
@@ -14,7 +14,7 @@ action:
|
||||
|
||||
By way of example, consider this site configuration:
|
||||
|
||||
{{< code-toggle file=hugo copy=false >}}
|
||||
{{< code-toggle file=hugo >}}
|
||||
baseURL = 'https://example.org/docs/'
|
||||
{{< /code-toggle >}}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ content/
|
||||
|
||||
And this front matter:
|
||||
|
||||
{{< code-toggle file=content/posts/cats.md fm=true copy=false >}}
|
||||
{{< code-toggle file=content/posts/cats.md fm=true >}}
|
||||
title = 'Cats'
|
||||
[[resources]]
|
||||
src = 'images/a.jpg'
|
||||
|
||||
@@ -34,7 +34,7 @@ content/
|
||||
|
||||
With the structure above, we can range through page resources of type `page` to build content:
|
||||
|
||||
{{< code file="layouts/lessons/single.html" lang=go-html-template copy=false >}}
|
||||
{{< code file="layouts/lessons/single.html" lang=go-html-template >}}
|
||||
{{ range .Resources.ByType "page" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user