Files
huell/layouts/partials/gallery.html
2025-08-05 21:47:38 +02:00

18 lines
512 B
HTML

{{ range sort .Pages "Date" "desc" }}
{{ if not .Params.private }}
{{ if and (isset .Params "image") .Params.image }}
<a href="{{ .Permalink }}" title="{{ .Title }}">
{{ $image := .Page.Resources.GetMatch .Params.image }}
{{ with $image }}
{{ $thumb := .Resize "400x" }}
<img
src="{{ $thumb.RelPermalink }}"
alt="{{ .Title }}"
class="img-responsive"
/>
{{ end }}
</a>
{{ end }}
{{ end }}
{{ end }}