From e826de1771f601955cee3d00512ec35258f70a3c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 17 Apr 2023 15:29:13 -0400 Subject: [PATCH] Fix art detail page --- themes/red/layouts/_default/art-detail.html | 123 ++++++++++---------- 1 file changed, 61 insertions(+), 62 deletions(-) diff --git a/themes/red/layouts/_default/art-detail.html b/themes/red/layouts/_default/art-detail.html index ef7d878..970dab5 100644 --- a/themes/red/layouts/_default/art-detail.html +++ b/themes/red/layouts/_default/art-detail.html @@ -16,86 +16,85 @@ {{ else }} - {{ $.Params.alt_text }} + {{ $.Params.alt_text }} {{ end }} {{ end }} {{ end }} - - - - - - {{ with .Params.arttags }} - + - {{ end }} - {{ with .Params.characters }} - - - - - {{ end }} + {{ with .Params.arttags }} + + + + + {{ end }} - {{ with .Params.program }} - - - - - {{ end }} + {{ with .Params.characters }} + + + + + {{ end }} - {{ with .Params.mastodon_url }} - - - - - {{ end }} + {{ with .Params.program }} + + + + + {{ end }} - {{ with .Params.newgrounds_url }} - - - - - {{ end }} + {{ with .Params.mastodon_url }} + + + + + {{ end }} + + {{ with .Params.newgrounds_url }} + + + + + {{ end }} - {{ with .Params.pixiv_url }} - - - - - {{ end }} + {{ with .Params.pixiv_url }} + + + + + {{ end }} +
Date - -
TagsDate - {{ $len := (len .) }} - {{ range $index, $element := . }} - {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} - {{ end }} +
Characters - {{ $len := (len .) }} - {{ range $index, $element := . }} - {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} - {{ end }} -
Tags + {{ $len := (len .) }} + {{ range $index, $element := . }} + {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} + {{ end }} +
Program - {{ . }} -
Characters + {{ $len := (len .) }} + {{ range $index, $element := . }} + {{ $element }}{{ if not (eq (add $index 1) $len) }},{{ end }} + {{ end }} +
Mastodon URL - {{ . }} -
Program + {{ . }} +
Newgrounds URL - {{ . }} -
Mastodon URL + {{ . }} +
Newgrounds URL + {{ . }} +
Pixiv URL - {{ . }} -
Pixiv URL + {{ . }} +
{{ partial "voting" . }} - - {{ with .Content }}

Commentary