From ca51fae62504191a55d1bd1b80e3c17543c04805 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 10 Aug 2023 18:46:56 -0400 Subject: [PATCH] Use linked headers in hand-written html --- themes/red/layouts/_default/art-detail.html | 4 +++- themes/red/layouts/_default/art.html | 15 +++++++++++---- themes/red/layouts/_default/audio-gallery.html | 9 +++++++-- themes/red/layouts/_default/software.html | 8 ++++++-- themes/red/layouts/partials/art-years.html | 1 - themes/red/layouts/partials/comments.html | 4 +++- themes/red/layouts/partials/related.html | 4 +++- 7 files changed, 33 insertions(+), 12 deletions(-) diff --git a/themes/red/layouts/_default/art-detail.html b/themes/red/layouts/_default/art-detail.html index f36a19e..96496da 100644 --- a/themes/red/layouts/_default/art-detail.html +++ b/themes/red/layouts/_default/art-detail.html @@ -109,7 +109,9 @@ {{ partial "voting" . }} {{ with .Content }} -

Commentary

+ {{ $.Scratch.Set "header-type" "h3" }} + {{ $.Scratch.Set "header-name" "Commentary" }} + {{ partial "fake-heading.html" $ }} {{ . }} {{ end }} diff --git a/themes/red/layouts/_default/art.html b/themes/red/layouts/_default/art.html index ae6c181..b5751f9 100644 --- a/themes/red/layouts/_default/art.html +++ b/themes/red/layouts/_default/art.html @@ -15,11 +15,11 @@
Contains risque art, so you should probably not view this on a work computer.
-

Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.

+

Welcome to my art gallery! I have saved most of my art since 2016, and this is the most complete archive of my work online.

-

If you want to see other cool artists and their websites, see the links page.

+

The gallery is sorted by date, but there's other sections to check out such as Guest Art! You can also filter by tags, or by characters.

-

You can follow me on Mastodon, Pixiv, Newgrounds, or if you like RSS feeds I have an art-only feed!

+

You can follow me on Mastodon, Pixiv, Newgrounds, or my Art RSS feed!

{{ with resources.Get "pics/pic-gallery.png" }} @@ -27,9 +27,16 @@ {{ end }} -

Featured

+ {{ .Scratch.Set "header-type" "h3" }} + {{ .Scratch.Set "header-name" "Featured" }} + {{ partial "fake-heading.html" . }} + {{ partial "featured-art" . }} + {{ .Scratch.Set "header-type" "h3" }} + {{ .Scratch.Set "header-name" "Years" }} + {{ partial "fake-heading.html" . }} + {{ partial "art-years" . }}
diff --git a/themes/red/layouts/_default/audio-gallery.html b/themes/red/layouts/_default/audio-gallery.html index d55d651..c526f8a 100644 --- a/themes/red/layouts/_default/audio-gallery.html +++ b/themes/red/layouts/_default/audio-gallery.html @@ -9,10 +9,15 @@ {{ $newgrounds_icon := resources.Get "newgrounds.webp" }} {{ range $art.categories }} -

{{ .name }}

+ {{ $.Scratch.Set "header-type" "h3" }} + {{ $.Scratch.Set "header-name" .name }} + {{ partial "fake-heading.html" $ }} +

{{ .description }}

{{ range sort .years "year" "desc" }} -

{{ .year }}

+ {{ $.Scratch.Set "header-type" "h4" }} + {{ $.Scratch.Set "header-name" .year}} + {{ partial "fake-heading.html" $ }} -

Contributions

+ {{ .Scratch.Set "header-type" "h3" }} + {{ .Scratch.Set "header-name" "Contributions" }} + {{ partial "fake-heading.html" . }}

I also do plenty of open-source work, here's a list of some of the projects I contributed to!

diff --git a/themes/red/layouts/partials/art-years.html b/themes/red/layouts/partials/art-years.html index 1fc2a82..e192a43 100644 --- a/themes/red/layouts/partials/art-years.html +++ b/themes/red/layouts/partials/art-years.html @@ -1,4 +1,3 @@ -

Years

{{ range $.Param "years" }} {{ $year := . }} diff --git a/themes/red/layouts/partials/comments.html b/themes/red/layouts/partials/comments.html index ed9f1d5..c178647 100644 --- a/themes/red/layouts/partials/comments.html +++ b/themes/red/layouts/partials/comments.html @@ -8,7 +8,9 @@ data-isso-page-author-hashes="96ab157c3aaa" src="//{{ $.Site.Params.isso_url }}/js/embed.min.js" async crossorigin>
-

Comments

+ {{ .Scratch.Set "header-type" "h3" }} + {{ .Scratch.Set "header-name" "Comments" }} + {{ partial "fake-heading.html" . }}
{{ else }} diff --git a/themes/red/layouts/partials/related.html b/themes/red/layouts/partials/related.html index 5b5ae5d..45237d5 100644 --- a/themes/red/layouts/partials/related.html +++ b/themes/red/layouts/partials/related.html @@ -1,5 +1,7 @@ {{ with .Site.RegularPages.Related . | first 5 }} -

See Also

+ {{ $.Scratch.Set "header-type" "h3" }} + {{ $.Scratch.Set "header-name" "See Also" }} + {{ partial "fake-heading.html" $ }}