From f638b27a3366c02133999c0972b7e7a91f66c613 Mon Sep 17 00:00:00 2001 From: Matt Gaunt-Seo Date: Thu, 1 Oct 2026 16:27:46 -0700 Subject: [PATCH 1/3] Fix the styleguide home and add theme variable files Bumps the styleguide and base-theme submodules. The styleguide reads *colors.css, *dimensions.css and *fonts.css, so split the variables out. Co-Authored-By: Claude Sonnet 5.5 --- config/development/config.json | 1 + themes/base-theme | 2 +- .../assets/css/variables/always.css | 1 - .../assets/css/variables/colors.css | 24 +++++++++++++++++++ .../assets/css/variables/dimensions.css | 4 ++++ .../gaunt-site/assets/css/variables/fonts.css | 6 +++++ themes/styleguide | 2 +- 7 files changed, 37 insertions(+), 3 deletions(-) delete mode 100644 themes/gaunt-site/assets/css/variables/always.css create mode 100644 themes/gaunt-site/assets/css/variables/colors.css create mode 100644 themes/gaunt-site/assets/css/variables/dimensions.css create mode 100644 themes/gaunt-site/assets/css/variables/fonts.css diff --git a/config/development/config.json b/config/development/config.json index d83444f..e763bf1 100644 --- a/config/development/config.json +++ b/config/development/config.json @@ -2,6 +2,7 @@ "theme": ["gaunt-site", "styleguide", "base-theme"], "ignoreFiles": [], "params": { + "styleguideSection": "styleguide", "baseTheme": { "themes": ["gaunt-site", "styleguide", "base-theme"] } diff --git a/themes/base-theme b/themes/base-theme index 7d03dd8..5c16342 160000 --- a/themes/base-theme +++ b/themes/base-theme @@ -1 +1 @@ -Subproject commit 7d03dd889ca91c2df559bf6499c9b362fca6d1f4 +Subproject commit 5c16342aad135d4ea8a554d8f1cb3b346e576822 diff --git a/themes/gaunt-site/assets/css/variables/always.css b/themes/gaunt-site/assets/css/variables/always.css deleted file mode 100644 index 31056b9..0000000 --- a/themes/gaunt-site/assets/css/variables/always.css +++ /dev/null @@ -1 +0,0 @@ -/* Intentionally empty. */ diff --git a/themes/gaunt-site/assets/css/variables/colors.css b/themes/gaunt-site/assets/css/variables/colors.css new file mode 100644 index 0000000..2eddd47 --- /dev/null +++ b/themes/gaunt-site/assets/css/variables/colors.css @@ -0,0 +1,24 @@ +:root { + --t-base: #f8f6f4; + --t-opposite: #373150; + --t-base-2: #373150; + --t-opposite-2: #f8f6f4; + --t-accent-1: #ff7867; + --t-accent-2: #84d2ee; + --t-accent-3: #fed9a1; + --t-accent-4: #3c55a5; + --print-color: #121212; +} + +@media (prefers-color-scheme: dark) { + :root { + --t-base: #072448; + --t-opposite: #f8f6f4; + --t-base-2: #121212; + --t-opposite-2: #f8f6f4; + --t-accent-1: #54d2d2; + --t-accent-2: #ffcb00; + --t-accent-3: #f8aa4b; + --t-accent-4: #ff6150; + } +} diff --git a/themes/gaunt-site/assets/css/variables/dimensions.css b/themes/gaunt-site/assets/css/variables/dimensions.css new file mode 100644 index 0000000..3766ef2 --- /dev/null +++ b/themes/gaunt-site/assets/css/variables/dimensions.css @@ -0,0 +1,4 @@ +:root { + --padding: 12px; + --page-max-width: 800px; +} diff --git a/themes/gaunt-site/assets/css/variables/fonts.css b/themes/gaunt-site/assets/css/variables/fonts.css new file mode 100644 index 0000000..03787be --- /dev/null +++ b/themes/gaunt-site/assets/css/variables/fonts.css @@ -0,0 +1,6 @@ +:root { + --body-font: -apple-system, blinkmacsystemfont, "avenir next", avenir, + "segoe ui", "helvetica neue", helvetica, cantarell, ubuntu, roboto, noto, + arial, sans-serif; + --title-font: "Montserrat", var(--body-font); +} diff --git a/themes/styleguide b/themes/styleguide index e0e2468..d6e5cc2 160000 --- a/themes/styleguide +++ b/themes/styleguide @@ -1 +1 @@ -Subproject commit e0e24686524ce773781a080a3d31469060ba0e1b +Subproject commit d6e5cc29b9af1907b37a72d809a3f7d7bbae0360 From e29b58ec591bdc2a170a4553aa5c1ddbb9770eb1 Mon Sep 17 00:00:00 2001 From: Matt Gaunt-Seo Date: Thu, 1 Oct 2026 16:33:28 -0700 Subject: [PATCH 2/3] Bump base-theme to support older Hugo Co-Authored-By: Claude Sonnet 5.5 --- themes/base-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base-theme b/themes/base-theme index 5c16342..022e0c3 160000 --- a/themes/base-theme +++ b/themes/base-theme @@ -1 +1 @@ -Subproject commit 5c16342aad135d4ea8a554d8f1cb3b346e576822 +Subproject commit 022e0c35dd5560eb750490a8624b0ae05a17ba09 From b0edf9e1099970bd55b82b31af1ce018acb855a6 Mon Sep 17 00:00:00 2001 From: Matt Gaunt-Seo Date: Thu, 1 Oct 2026 16:36:37 -0700 Subject: [PATCH 3/3] Remove the removed .Site.Author from the old RSS template Newer Hugo no longer has it and it was always empty here. Co-Authored-By: Claude Sonnet 5.5 --- themes/gaunt.dev/layouts/rss.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/themes/gaunt.dev/layouts/rss.xml b/themes/gaunt.dev/layouts/rss.xml index f7e9dcb..64d0b91 100644 --- a/themes/gaunt.dev/layouts/rss.xml +++ b/themes/gaunt.dev/layouts/rss.xml @@ -18,9 +18,6 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} @@ -31,7 +28,6 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Summary | html }}