summaryrefslogtreecommitdiff
path: root/layouts/partials/button-15.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-02-26 21:45:23 +0100
committermms <michal@sapka.me>2024-02-26 21:45:23 +0100
commitaec99f3e8d57f40545e9cad1657e1d85952816c0 (patch)
tree5bafd1d6d9bc2ab6ad5aa5165c787451a6a99216 /layouts/partials/button-15.html
parent22d97916f51c049a777148205c0fd95a1aabc689 (diff)
feat: web buttons
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 }}