mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +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
@@ -13,19 +13,19 @@ This is useful for inheritance of common shortcode parameters from the root.
|
||||
|
||||
In this contrived example, the "greeting" shortcode is the parent, and the "now" shortcode is child.
|
||||
|
||||
{{< code file="content/welcome.md" lang=md copy=false >}}
|
||||
{{< code file="content/welcome.md" lang=md >}}
|
||||
{{</* greeting dateFormat="Jan 2, 2006" */>}}
|
||||
Welcome. Today is {{</* now */>}}.
|
||||
{{</* /greeting */>}}
|
||||
{{< /code >}}
|
||||
|
||||
{{< code file="layouts/shortcodes/greeting.html" lang=go-html-template copy=false >}}
|
||||
{{< code file="layouts/shortcodes/greeting.html" lang=go-html-template >}}
|
||||
<div class="greeting">
|
||||
{{ trim .Inner "\r\n" | .Page.RenderString }}
|
||||
</div>
|
||||
{{< /code >}}
|
||||
|
||||
{{< code file="layouts/shortcodes/now.html" lang=go-html-template copy=false >}}
|
||||
{{< code file="layouts/shortcodes/now.html" lang=go-html-template >}}
|
||||
{{- $dateFormat := "January 2, 2006 15:04:05" }}
|
||||
|
||||
{{- with .Params }}
|
||||
|
||||
Reference in new issue
Block a user