From 33b8ae32767ac440eb1316a0b4dcd71f7bb6bb06 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 20 May 2026 14:32:14 +0000 Subject: [PATCH 1/5] Disable taxonomy, term, and RSS pages `disableKinds = ["taxonomy"]` only disables the taxonomy list page; post-Hugo-0.73 individual term pages are a separate kind. The site declares no taxonomies, so neither list nor term pages have content, but the config now matches its stated intent. Disabling RSS also suppresses an empty `index.xml` that nothing subscribes to. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/hugo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hugo.toml b/docs/hugo.toml index c472c383..19df6a31 100644 --- a/docs/hugo.toml +++ b/docs/hugo.toml @@ -1,5 +1,5 @@ title = "MaxMind GeoIP2 PHP API" -disableKinds = ["taxonomy"] +disableKinds = ["taxonomy", "term", "RSS"] [[cascade]] layout = "default" From 0929b44846d828f25579ca5519ab0cd014fcbb07 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 20 May 2026 14:32:14 +0000 Subject: [PATCH 2/5] Add a 404 page layout Hugo's built-in fallback renders an empty `
` for the 404 page. Provide a minimal "Page not found" body with a link back to the site home, reusing the Charter/forest-green design tokens from the main layout. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/layouts/404.html | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docs/layouts/404.html diff --git a/docs/layouts/404.html b/docs/layouts/404.html new file mode 100644 index 00000000..3662eb6e --- /dev/null +++ b/docs/layouts/404.html @@ -0,0 +1,58 @@ + + + + + + Page not found | {{ .Site.Title }} + + + +
+

Page not found

+

+ The page you're looking for doesn't exist. Return to + {{ .Site.Title }}. +

+
+ + From 12ef2bc8774c4bf0940f6b22bd14e6ec7f856dec Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 20 May 2026 14:32:14 +0000 Subject: [PATCH 3/5] Guard .File.BaseFileName in title for virtual pages `.File` is nil on virtual pages (e.g., taxonomy listings before they were disabled). Wrap with `with .File` so the title rendering is null-safe even if future virtual pages get enabled. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/layouts/_default/default.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/layouts/_default/default.html b/docs/layouts/_default/default.html index 4add913e..dc373859 100644 --- a/docs/layouts/_default/default.html +++ b/docs/layouts/_default/default.html @@ -3,7 +3,8 @@ - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ or .Title .File.BaseFileName }} | {{ .Site.Title }}{{ end }} + {{- $title := or .Title .File.BaseFileName -}} + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ $title }} | {{ .Site.Title }}{{ end }} + {{- $css := resources.Get "css/main.css" | fingerprint -}} +
diff --git a/docs/layouts/_default/default.html b/docs/layouts/_default/default.html index dc373859..e52c4a45 100644 --- a/docs/layouts/_default/default.html +++ b/docs/layouts/_default/default.html @@ -5,201 +5,13 @@ {{- $title := or .Title .File.BaseFileName -}} {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ $title }} | {{ .Site.Title }}{{ end }} - + {{- $css := resources.Get "css/main.css" | fingerprint -}} +