Use NG icon in audio gallery too

This commit is contained in:
Joshua Goins 2022-08-30 12:08:14 -04:00
parent ff9ef5079c
commit cffafbfdca

View file

@ -4,6 +4,7 @@
{{ .Content }} {{ .Content }}
{{ $art := (index site.Data ($.Param "json")) }} {{ $art := (index site.Data ($.Param "json")) }}
{{ $newgrounds_icon := resources.Get "newgrounds.png" }}
{{ range $art.categories }} {{ range $art.categories }}
<h3>{{ .name }}</h3> <h3>{{ .name }}</h3>
@ -23,7 +24,7 @@
<figcaption> <figcaption>
"{{ .title }}" "{{ .title }}"
{{ if .newgrounds_url }} {{ if .newgrounds_url }}
<a href="{{ .newgrounds_url }}">Newgrounds</a> <a href="{{ .newgrounds_url }}"><img alt="Newgrounds Icon" width="16" height="16" src="{{ $newgrounds_icon.Permalink }}"></a>
{{ end }} {{ end }}
</figcaption> </figcaption>
</figure> </figure>