diff options
author | mms <michal@sapka.me> | 2024-02-26 21:45:23 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-02-26 21:45:23 +0100 |
commit | aec99f3e8d57f40545e9cad1657e1d85952816c0 (patch) | |
tree | 5bafd1d6d9bc2ab6ad5aa5165c787451a6a99216 /layouts/partials/button-15.html | |
parent | 22d97916f51c049a777148205c0fd95a1aabc689 (diff) |
feat: web buttons
Diffstat (limited to 'layouts/partials/button-15.html')
-rw-r--r-- | layouts/partials/button-15.html | 13 |
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 }} |