diff --git a/CHANGELOG.md b/CHANGELOG.md index 99aca551367b3dccf8b1104091897d137c8512bc..19d440b6f3699d032000ffc688605b120c8f30b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ * Fixed the CSS so the `navbar` wont overflow under very low resolutions. * Fixed certain text inside `<p>` tags overflowing and distorting the layout. * Updated CSS for `blockquote` and fonts to be more readable. +* Added additional parameter to `tab` shortcode allowing the `copy` button to be + hidden. ## 2.0.0 diff --git a/layouts/shortcodes/tab.html b/layouts/shortcodes/tab.html index 10871ebd920692f1755a55dd0ba81df160dee649..da0b3843f4ee277998547244c6471dba8009525e 100644 --- a/layouts/shortcodes/tab.html +++ b/layouts/shortcodes/tab.html @@ -1,4 +1,4 @@ <div class="codeBlockWrapper tab-pane" title="{{ .Get 0 }}"> - <button type="button" aria-label="Copy code to clipboard" class="copyButton">Copy</button> + {{ if .Get 1 }}<button type="button" aria-label="Copy code to clipboard" class="copyButton">Copy</button>{{ end }} {{ .Inner }} </div>