diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-12 23:27:49 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-09-12 23:27:49 +0800 |
| commit | 73ee8192413cacdda338b1f412f5c68a4d059751 (patch) | |
| tree | 66c4ea27cb1dadf2edd86a4d28533e25f4e39725 /README.md | |
| parent | 3e0ae9c5135ce4cbf3f87eea79c5533e236befb6 (diff) | |
Make base URL configurable
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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`. |
