cosin-website/layouts/shortcodes/gallery.html

9 lines
240 B
HTML

{{ $year := string (.Get 0) }}
{{ $photos := index .Site.Data.photos $year }}
{{ range $photos }}
<a href="/photos/{{ $year}}/{{ . }}.jpg">
<img src="/photos/{{ $year}}/{{ . }}.small.jpg"
alt="CoSin {{ $year }}" />
</a>
{{ end }}