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 }}
{{ $art := (index site.Data ($.Param "json")) }}
{{ $newgrounds_icon := resources.Get "newgrounds.png" }}
{{ range $art.categories }}
<h3>{{ .name }}</h3>
@ -23,7 +24,7 @@
<figcaption>
"{{ .title }}"
{{ 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 }}
</figcaption>
</figure>