From 624341017867605d82b91c981d266d25a2e337c1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 10 Aug 2023 10:46:46 -0400 Subject: [PATCH] Fix headings on some pages, remove useless

--- themes/red/layouts/404.html | 3 ++- themes/red/layouts/_default/art-detail.html | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/themes/red/layouts/404.html b/themes/red/layouts/404.html index bbecdb3..90a926f 100644 --- a/themes/red/layouts/404.html +++ b/themes/red/layouts/404.html @@ -1,5 +1,6 @@ {{ define "main" }} -

Page not found!

+

Page not found!

+
{{ with resources.Get "404.webp" }} {{ $alt_text := "Sakura is confused about where the page went, or maybe where you shouldn't go." }} diff --git a/themes/red/layouts/_default/art-detail.html b/themes/red/layouts/_default/art-detail.html index e67545d..f36a19e 100644 --- a/themes/red/layouts/_default/art-detail.html +++ b/themes/red/layouts/_default/art-detail.html @@ -1,5 +1,9 @@ {{ define "main" }} -

{{ .Title }}

+ {{ with .Title }} +

{{ . }}

+ {{ else }} +

Untitled Artwork

+ {{ end }}
{{ with resources.Get .Params.filename }} @@ -107,7 +111,7 @@ {{ with .Content }}

Commentary

-

{{ . }}

+ {{ . }} {{ end }} {{ if .Params.threed }}