diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
| commit | 631547a75142326a7c71bdf123e1475217a5ad73 (patch) | |
| tree | f3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /layouts/shortcodes/gal-img.html | |
| parent | 77ccbe72fad5a4870185fff374f75471c16a9043 (diff) | |
| download | danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip | |
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'layouts/shortcodes/gal-img.html')
| -rw-r--r-- | layouts/shortcodes/gal-img.html | 16 |
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> |
