summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/gal-img.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/gal-img.html')
-rw-r--r--layouts/shortcodes/gal-img.html16
1 files changed, 0 insertions, 16 deletions
diff --git a/layouts/shortcodes/gal-img.html b/layouts/shortcodes/gal-img.html
deleted file mode 100644
index ae7d23e..0000000
--- a/layouts/shortcodes/gal-img.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{{- $src := .Get "src" -}}
-{{- $source := resources.Get $src -}}
-{{- $alt := .Get "alt" -}}
-{{- $caption := .Get "caption" -}}
-{{- $location := .Get "location" -}}
-{{- $fullsize := $source -}}
-{{- $thumb := $source.Resize "400x webp" -}}
-<figure class="photo-card"
- data-photo-index="{{ .Ordinal }}"
- data-src="{{ $fullsize.RelPermalink }}"
- data-alt="{{ $alt }}"
- data-caption="{{ $caption }}"
- data-location="{{ $location }}">
- <img src="{{ $thumb.RelPermalink }}" alt="{{ $alt }}" loading="lazy">
- {{ with $caption }}<figcaption>{{ . }}</figcaption>{{ end }}
-</figure>