2022-08-24 10:24:04 -04:00
|
|
|
{{ define "main" }}
|
|
|
|
<h2>{{ .Title }}</h2>
|
|
|
|
|
2023-02-23 17:39:20 -05:00
|
|
|
<hr>
|
|
|
|
|
2022-08-24 10:24:04 -04:00
|
|
|
{{ .Content }}
|
|
|
|
|
|
|
|
{{ $art := (index site.Data ($.Param "json")) }}
|
2022-10-27 10:05:34 -04:00
|
|
|
{{ $newgrounds_icon := resources.Get "newgrounds.webp" }}
|
2022-08-24 10:24:04 -04:00
|
|
|
|
|
|
|
{{ range $art.categories }}
|
2023-08-10 18:46:56 -04:00
|
|
|
{{ $.Scratch.Set "header-type" "h3" }}
|
|
|
|
{{ $.Scratch.Set "header-name" .name }}
|
|
|
|
{{ partial "fake-heading.html" $ }}
|
|
|
|
|
2022-08-24 10:24:04 -04:00
|
|
|
<p>{{ .description }}</p>
|
|
|
|
{{ range sort .years "year" "desc" }}
|
2023-08-10 18:46:56 -04:00
|
|
|
{{ $.Scratch.Set "header-type" "h4" }}
|
|
|
|
{{ $.Scratch.Set "header-name" .year}}
|
|
|
|
{{ partial "fake-heading.html" $ }}
|
2022-08-24 10:24:04 -04:00
|
|
|
|
|
|
|
<div class="gallery">
|
|
|
|
{{ range .pieces }}
|
|
|
|
<figure>
|
|
|
|
{{ $full := resources.Get (printf "%s/%s" ($.Param "json") .filename) }}
|
|
|
|
|
2023-04-17 17:00:05 -04:00
|
|
|
<audio controls src="{{ $full.RelPermalink }}" preload="metadata">
|
2022-08-24 10:28:56 -04:00
|
|
|
Your browser does not support audio.
|
2022-08-24 10:24:04 -04:00
|
|
|
</audio>
|
|
|
|
|
|
|
|
<figcaption>
|
|
|
|
"{{ .title }}"
|
|
|
|
{{ if .newgrounds_url }}
|
2023-04-17 17:00:05 -04:00
|
|
|
<a href="{{ .newgrounds_url }}" style="vertical-align: bottom"><img style="vertical-align: bottom" alt="Newgrounds Icon" width="19" height="19" src="{{ $newgrounds_icon.RelPermalink }}"></a>
|
2022-08-24 10:24:04 -04:00
|
|
|
{{ end }}
|
|
|
|
</figcaption>
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|