From e586197fcfd46b4131c0fc75d87175ad5421521c Mon Sep 17 00:00:00 2001 From: yann64 Date: Sun, 11 Oct 2026 15:51:07 +0200 Subject: [PATCH] Build location-independent pages only (no base URL at deploy) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ --- Makefile | 4 ++-- hugo.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3cfda140..1764f639 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ check: build ## build, then verify every internal link and image serve: ## local preview on http://localhost:1313 hugo server -deploy: ## build for DEPLOY_URL, check, and copy public/ to DEPLOY_DIR +deploy: ## build, check, and copy public/ to DEPLOY_DIR (served at DEPLOY_URL) rm -rf public - hugo --panicOnWarning --minify --baseURL $(DEPLOY_URL) + hugo --panicOnWarning --minify python3 tools/check_links.py public @test -d "$(dir $(DEPLOY_DIR))" || { echo "share not mounted: $(dir $(DEPLOY_DIR))"; exit 1; } mkdir -p "$(DEPLOY_DIR)" diff --git a/hugo.toml b/hugo.toml index 95b9def3..cfb32d1e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,8 +1,8 @@ baseURL = "/" title = "Old-Computers.com" locale = "en" -disableKinds = ["rss"] -enableRobotsTXT = true +# relative URLs only: no absolute address is known at build time, so no feed or sitemap +disableKinds = ["rss", "sitemap"] # pages keep working when the site is served from a sub-directory relativeURLs = true