From 73ee8192413cacdda338b1f412f5c68a4d059751 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 12 Sep 2026 23:27:49 +0800 Subject: Make base URL configurable --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8b2d67f..638ea52 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ make serve make clean ``` -`make build` recreates `public/`, runs Hugo, and then copies every public Markdown source and its page-bundle attachments without changing their bytes. `make serve` prepares that same output before starting Hugo at `http://localhost:1314/`; override the port with `make serve PORT=8080`. Hugo rebuilds HTML while serving; restart the command after editing Markdown when the raw `.md` snapshot also needs to change. +`make build` recreates `public/`, runs Hugo, and then copies every public Markdown source and its page-bundle attachments without changing their bytes. The default `BASE_URL` is `http://localhost:1314/`; pass `BASE_URL=https://example.org/` to generate absolute production URLs. `make serve` prepares that same output before starting Hugo at `http://localhost:1314/`; override the port with `make serve PORT=8080`. Hugo rebuilds HTML while serving; restart the command after editing Markdown when the raw `.md` snapshot also needs to change. The source repository URL, per-file Git base URL, and public email are configured once in `hugo.toml`. -- cgit v1.2.3