Move art json to root of data folder
This commit is contained in:
parent
42343c9563
commit
91af8d0ac9
2 changed files with 17 additions and 17 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue