{{/* Page layout used for art details view, when visiting a specific artwork. */}} {{ define "main" }}

{{ .Title }}


{{ if (and (not $.Params.animation) (and (not (in .File.Dir "art/guest")) (and (not $.Params.threed) (not $.Params.comic) )) ) }} {{ $full := printf "%s/art/%s.avif" $.Site.Params.image_host $.Params.slug }} {{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host $.Params.slug }} {{ $.Params.alt_text }} {{ else }} {{ if $.Params.threed }} {{ $file := printf "%s/3d/%s.glb" $.Site.Params.image_host $.Params.slug }} {{ with $file }} {{ $cameraorbit := $.Params.orbit }} {{ $cameratarget := $.Params.target }} {{ $fov := $.Params.fov }} {{ end }} {{ else }} {{ $file := printf "%s/animation/%s.webm" $.Site.Params.image_host $.Params.slug }} {{ with $file }} {{ if $.Params.animation }}
{{ end }} {{ end }} {{ end }} {{ end }} {{ if $.Params.comic }} {{ range $.Params.pages }} {{ $full := printf "%s/art/%s.avif" $.Site.Params.image_host .filename }} {{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host .filename}} {{ .alt_text }} {{ end }} {{ end }} {{ partial "voting" . }} {{ with .Params.arttags }} {{ end }} {{ with .Params.characters }} {{ end }} {{ with .Params.artist }} {{ end }} {{ with .Params.program }} {{ end }} {{ with .Params.mastodon_url }} {{ end }} {{ with .Params.newgrounds_url }} {{ end }} {{ with .Params.pixiv_url }} {{ end }}
{{ i18n "date" }}
{{ i18n "tags" }} {{ $len := (len .) }} {{ range $index, $element := . }} {{ strings.Title $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} {{ end }}
{{ i18n "characters" }} {{ $len := (len .) }} {{ range $index, $element := . }} {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} {{ end }}
Artist {{ . }}
Program {{ . }}
Mastodon URL Mastodon Post
Newgrounds URL Newgrounds Post
Pixiv URL Pixiv Post
{{ with .Content }} {{ $.Scratch.Set "header-type" "h3" }} {{ $.Scratch.Set "header-name" "Commentary" }} {{ partial "fake-heading.html" $ }} {{ . }} {{ end }} {{ if .Params.threed }} {{ $site := resources.Get "js/model-viewer.min.js" }} {{ if hugo.IsProduction }} {{ $site = $site | fingerprint | resources.PostProcess }} {{ end }} {{ end }} {{ partial "comments" . }} {{ end }}