Restructure gallery
This commit is contained in:
parent
f7a457c24e
commit
59ee14a7d6
1 changed files with 19 additions and 19 deletions
|
@ -15,26 +15,26 @@
|
|||
<figure>
|
||||
{{ $full := resources.Get (printf "%s/%s" ($.Param "json") .filename) }}
|
||||
|
||||
<a href="{{ $full.Permalink }}">
|
||||
{{ if $.Params.thumbnails }}
|
||||
{{ $thumb := resources.Get (printf "%s-thumbs/%s" ($.Param "json") .filename) }}
|
||||
<img alt="{{ .title }}" width="128px" height="128px" src="{{ $thumb.Permalink }}"/>
|
||||
{{ else }}
|
||||
<img alt="{{ .title }}" src="{{ $full.Permalink }}"/>
|
||||
{{ end }}
|
||||
</a>
|
||||
<a href="{{ $full.Permalink }}">
|
||||
{{ if $.Params.thumbnails }}
|
||||
{{ $thumb := resources.Get (printf "%s-thumbs/%s" ($.Param "json") .filename) }}
|
||||
<img alt="{{ .title }}" width="128px" height="128px" src="{{ $thumb.Permalink }}"/>
|
||||
{{ else }}
|
||||
<img alt="{{ .title }}" src="{{ $full.Permalink }}"/>
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
<figcaption>
|
||||
"{{ .title }}"
|
||||
{{ if .newgrounds_url }}
|
||||
<a href="{{ .newgrounds_url }}">Newgrounds</a>
|
||||
{{ end }}
|
||||
{{ if .pixiv_url }}
|
||||
<a href="{{ .pixiv_url }}">Pixiv</a>
|
||||
{{ end }}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{ end }}
|
||||
<figcaption>
|
||||
"{{ .title }}"
|
||||
{{ if .newgrounds_url }}
|
||||
<a href="{{ .newgrounds_url }}">Newgrounds</a>
|
||||
{{ end }}
|
||||
{{ if .pixiv_url }}
|
||||
<a href="{{ .pixiv_url }}">Pixiv</a>
|
||||
{{ end }}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue