Fix art year rendering error
This commit is contained in:
parent
eb11b2a3e6
commit
654fdc0ac2
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
{{ range $.Param "years" }}
|
{{ range $.Param "years" }}
|
||||||
{{ $year := . }}
|
{{ $year := . }}
|
||||||
<a href="/art/{{ . }}">
|
<a href="/art/{{ . }}">
|
||||||
{{ $thumbp := printf "/year-thumbs/%s.webp" . }}
|
{{ $thumbp := printf "/year-thumbs/%d.webp" . }}
|
||||||
{{ with resources.Get $thumbp }}
|
{{ with resources.Get $thumbp }}
|
||||||
<img width="512" height="256" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
|
<img width="512" height="256" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue