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,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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue