www.kontakt-bamberg.de/layouts/galerie/single.html

21 lines
551 B
HTML
Raw Permalink Normal View History

2023-03-12 00:13:25 +01:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<section class="gallery">
2023-03-13 00:59:21 +01:00
{{ $prev := 0 }}
{{ $curr := 0 }}
2023-03-12 00:13:25 +01:00
{{ range .Resources.ByType "image" }}
2023-03-13 00:59:21 +01:00
<a href="#{{ .Name }}"><img alt="{{ .Title }}" src="{{ (.Fill "560x560").RelPermalink }}"></a>
{{ $next := . }}
{{ with $curr }}
{{ partial "gallery/slide.html" (dict "curr" $curr "prev" $prev "next" $next) }}
{{ $prev = $curr }}
{{ end }}
{{ $curr = . }}
{{ end }}
{{ with $curr }}
{{ partial "gallery/slide.html" (dict "curr" $curr "prev" $prev "next" 0) }}
2023-03-12 00:13:25 +01:00
{{ end }}
</section>
{{ end }}