Remove superfluous shortcode param

This commit is contained in:
Joe Mooring authored and Joe Mooring committed 2023-11-07 14:06:01 -08:00
1 parent 2a0544757c
commit 45ec53fe00
27 files changed
+49 -49

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ The `Ordinal` method returns the zero-based ordinal of the shortcode in relation
This method is useful for, among other things, assigning unique element IDs when a shortcode is called two or more times from the same page. For example:
{{< code file="content/about.md" lang=md copy=false >}}
{{< code file="content/about.md" lang=md >}}
{{</* img src="images/a.jpg" */>}}
{{</* img src="images/b.jpg" */>}}
@@ -21,7 +21,7 @@ This method is useful for, among other things, assigning unique element IDs when
This shortcode performs error checking, then renders an HTML `img` element with a unique `id` attribute:
{{< code file="layouts/shortcodes/img.html" lang=go-html-template copy=false >}}
{{< code file="layouts/shortcodes/img.html" lang=go-html-template >}}
{{ $src := "" }}
{{ with .Get "src" }}
{{ $src = . }}