mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-20 00:15:24 +00:00
all: Change shortcode usage and design to prevent invalid HTML
This commit is contained in:
1 parent
c41d766137
commit
0fca8ef251
174 files changed
+671
-633
No files matched your search
@@ -14,9 +14,9 @@ toc: true
|
||||
|
||||
Specify the argument by position or by name. When calling a shortcode within Markdown, use either positional or named argument, but not both.
|
||||
|
||||
{{% note %}}
|
||||
{{< note >}}
|
||||
Some shortcodes support positional arguments, some support named arguments, and others support both. Refer to the shortcode's documentation for usage details.
|
||||
{{% /note %}}
|
||||
{{< /note >}}
|
||||
|
||||
## Positional arguments
|
||||
|
||||
@@ -46,6 +46,6 @@ To retrieve arguments by name:
|
||||
{{ printf "%s %s." (.Get "greeting") (.Get "firstName") }} → Hello world.
|
||||
{{< /code >}}
|
||||
|
||||
{{% note %}}
|
||||
{{< note >}}
|
||||
Argument names are case-sensitive.
|
||||
{{% /note %}}
|
||||
{{< /note >}}
|
||||
Reference in new issue
Block a user