diff options
Diffstat (limited to 'layouts/shortcodes/gal-img.html')
| -rw-r--r-- | layouts/shortcodes/gal-img.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/shortcodes/gal-img.html b/layouts/shortcodes/gal-img.html new file mode 100644 index 0000000..0693319 --- /dev/null +++ b/layouts/shortcodes/gal-img.html @@ -0,0 +1,7 @@ +{{- $src := .Get "src" -}} +{{- $source := resources.Get $src -}} +{{- $alt := .Get "alt" -}} +{{- $icon := $source.Resize "400x webp" -}} +<a class="gallery-item" href="{{ $source.RelPermalink }}" target="_blank"> + <img src="{{ $icon.RelPermalink }}" alt="{{ $alt }}"> +</a> |
