From 66d32c48b09c95ddacbe57b466f3c4dc5bd5a8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 23 Jun 2022 13:24:36 +0200 Subject: [PATCH] button: fix typo in parameter name #277 --- exampleSite/content/shortcodes/button.en.md | 4 ++-- layouts/shortcodes/button.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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