diff --git a/exampleSite/content/shortcodes/button.en.md b/exampleSite/content/shortcodes/button.en.md index 8165ce1d3a..fdd42b1d69 100644 --- a/exampleSite/content/shortcodes/button.en.md +++ b/exampleSite/content/shortcodes/button.en.md @@ -121,10 +121,10 @@ Once the button is clicked, it opens another browser tab for the given URL. #### To the Right ````go -{{%/* button href="https://gohugo.io/" icon="download" icon-position="right" %}}Get Hugo{{% /button */%}} +{{%/* button href="https://gohugo.io/" icon="download" iconposition="right" %}}Get Hugo{{% /button */%}} ```` -{{% button href="https://gohugo.io/" icon="download" icon-position="right" %}}Get Hugo{{% /button %}} +{{% button href="https://gohugo.io/" icon="download" iconposition="right" %}}Get Hugo{{% /button %}} #### Override for Severity diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html index 71934932ed..20125fb500 100644 --- a/layouts/shortcodes/button.html +++ b/layouts/shortcodes/button.html @@ -4,7 +4,7 @@ "content" .Inner "href" (.Get "href") "icon" (.Get "icon") - "icon-position" (.Get "iconposition") + "iconposition" ((.Get "iconposition") | default (.Get "icon-position")) "style" (.Get "style") "title" (.Get "title") ) }} \ No newline at end of file