From 972fec50ebc005314670f4fb34e5953639f03a70 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sun, 4 Oct 2026 10:07:56 +0700 Subject: [PATCH] fix(site): replace Page not found nav item with GitHub repo link Minima's header lists every titled page, so 404.html appeared in the menu. Override the header to show a single link to the repository, and make the 404 page's home link respect baseurl. --- 404.html | 4 ++-- _config.yml | 3 +++ _includes/header.html | 27 +++++++++++++++++++++++++++ docs/deployment.md | 3 +++ 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 _includes/header.html diff --git a/404.html b/404.html index fc768e6..5a9f378 100644 --- a/404.html +++ b/404.html @@ -7,7 +7,7 @@ permalink: /404.html

Page not found

That page does not exist. The provider list lives on the -home page.

+home page.

If a link here is broken, -open an issue.

+open an issue.

diff --git a/_config.yml b/_config.yml index e606f98..10d5ecc 100644 --- a/_config.yml +++ b/_config.yml @@ -3,6 +3,9 @@ description: A curated list of affordable (or almost free) LLM providers theme: minima show_downloads: false +# Linked from the header nav (_includes/header.html) and 404.html. +repository: tiennm99/penny-pincher-provider + # GitHub Pages target. It only ever reads this file, so its values live here and # Cloudflare overrides them via _config.cloudflare.yml. url: https://tiennm99.github.io diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..9260dc9 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,27 @@ +{%- comment -%} + Overrides minima's header. Its default nav lists every titled page, which + surfaced 404.html as a "Page not found" menu item; this nav links the repo. +{%- endcomment -%} + diff --git a/docs/deployment.md b/docs/deployment.md index 6a763d1..f0e656a 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -96,5 +96,8 @@ which a Git-connected project rejects. Push to `main` instead. content, pulled into `index.md` by `include_relative`, which reads excluded files fine — the exclusion only stops the raw markdown shipping as a duplicate page. - `404.html` is served automatically by both hosts for unmatched routes. +- `_includes/header.html` overrides minima's header. The stock nav lists every page + with a `title`, which put `404.html` in the menu as "Page not found"; the override + shows a single GitHub link built from `repository` in `_config.yml`. - Ruby is pinned to the `3.4` series in both workflows rather than an exact patch. Cloudflare's own build image is irrelevant here, since Actions does the building.