www.iger.events/layouts/shortcodes/gallery.html

7 lines
194 B
HTML
Raw Permalink Normal View History

{{ $gallery := ($.Page.Resources.Match "gallery/*").ByType "image" }}
{{ range $gallery }}
<a href="{{ .Permalink }}">
<img src="{{ (.Fill "300x300 q50").Permalink }}" alt="" />
</a>
{{ end }}