Move art json to root of data folder

This commit is contained in:
Joshua Goins 2022-08-03 13:38:29 -04:00
parent 42343c9563
commit 91af8d0ac9
2 changed files with 17 additions and 17 deletions

View file

@ -1,8 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
{{ $art := site.Data.art.art }} {{ $art := site.Data.art }}
{{ range $art.categories }} {{ range $art.categories }}
<h2>{{ .name }}</h2> <h2>{{ .name }}</h2>
@ -10,15 +9,16 @@
<h3>{{ .year }}</h3> <h3>{{ .year }}</h3>
{{ range .pieces }} {{ range .pieces }}
<figure> <figure>
{{ $local := resources.Get (printf "art-thumbs/%s" .filename) }} {{ $thumb := resources.Get (printf "art-thumbs/%s" .filename) }}
{{ $full := resources.Get (printf "art/%s" .filename) }} {{ $full := resources.Get (printf "art/%s" .filename) }}
<a href="{{ $full.Permalink }}"> <a href="{{ $full.Permalink }}">
<img width="128px" height="128px" src="{{ $local.Permalink }}"/> <img width="128px" height="128px" src="{{ $thumb.Permalink }}"/>
</a> </a>
<figcaption>"{{ .title }}"</figcaption> <figcaption>"{{ .title }}"</figcaption>
</figure> </figure>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}