Fix art year rendering error

This commit is contained in:
Joshua Goins 2023-03-06 21:48:55 -05:00
parent eb11b2a3e6
commit 654fdc0ac2

View file

@ -3,7 +3,7 @@
{{ range $.Param "years" }}
{{ $year := . }}
<a href="/art/{{ . }}">
{{ $thumbp := printf "/year-thumbs/%s.webp" . }}
{{ $thumbp := printf "/year-thumbs/%d.webp" . }}
{{ with resources.Get $thumbp }}
<img width="512" height="256" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
{{ end }}