aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/button.html4
-rw-r--r--layouts/shortcodes/mermaid.html2
2 files changed, 4 insertions, 2 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>
diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html
index 66eb4a6..f569bc4 100644
--- a/layouts/shortcodes/mermaid.html
+++ b/layouts/shortcodes/mermaid.html
@@ -4,6 +4,6 @@
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}
-<p class="mermaid">
+<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{ .Inner }}
</p>