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