summaryrefslogtreecommitdiff
path: root/layouts/partials/button-15.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/button-15.html')
-rw-r--r--layouts/partials/button-15.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/button-15.html b/layouts/partials/button-15.html
new file mode 100644
index 0000000..009ed5c
--- /dev/null
+++ b/layouts/partials/button-15.html
@@ -0,0 +1,13 @@
+{{- $file := .file }}
+{{- $path := printf "webbuttons/%s" $file}}
+{{- $img := resources.Get $path }}
+{{- $img := $img.Resize "80x15 webp q90"}}
+
+{{- if $.href }} <a href="{{ $.href }}"> {{ end }}
+ <img
+ class="webbutton"
+ alt="{{ $.alt }}"
+ src="{{ $img.RelPermalink }}"
+ width="{{ $img.Width }}"
+ height="{{ $img.Height }}">
+{{- if $.href }} </a> {{ end }}