aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/button.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/button.html')
-rw-r--r--layouts/shortcodes/button.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 88b0f20..98d2cdd 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -7,4 +7,6 @@
{{ with .Get "relref" }}
{{ $ref = relref $ . }}
{{ end }}
-<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn">{{ $.Inner }}</a>
+<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
+ {{ $.Inner }}
+</a>