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