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

{{ .Title }}

Posted on {{ 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.filename }} {{ $jpeg := printf "%s/art/%s.jpg" $.Site.Params.image_host $.Params.filename }} {{ $.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" . }}
{{ partial "art-detail" . }} {{ 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 }} {{ define "details" }} {{ partial "art-sidebar" . }}
{{ partial "art-detail" . }} {{ end }}