mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +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 @@ To support both positional and named parameters when calling a shortcode, use th
|
||||
|
||||
With this shortcode template:
|
||||
|
||||
{{< code file="layouts/shortcodes/myshortcode.html" lang=go-html-template copy=false >}}
|
||||
{{< code file="layouts/shortcodes/myshortcode.html" lang=go-html-template >}}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ printf "%s %s." (.Get "greeting") (.Get "firstName") }}
|
||||
{{ else }}
|
||||
@@ -24,7 +24,7 @@ With this shortcode template:
|
||||
|
||||
Both of these calls return the same value:
|
||||
|
||||
{{< code file="content/about.md" lang=md copy=false >}}
|
||||
{{< code file="content/about.md" lang=md >}}
|
||||
{{</* myshortcode greeting="Hello" firstName="world" */>}}
|
||||
{{</* myshortcode "Hello" "world" */>}}
|
||||
{{< /code >}}
|
||||
Reference in new issue
Block a user