gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
76.02k stars 7.54k forks source link

Build keeps localhost as url #13052

Closed cibersheep closed 6 days ago

cibersheep commented 6 days ago
$ hugo version 0.138.0 snap
$ OS Ubuntu 24.04
$ Theme re-terminal

Site structure image

When hugo server site works fine.

If I build the site hugo only index will show baseUrl, other pages/* will show localhost:!313

<link rel="canonical" href="http://localhost:1313/pages/donacions/" />

If I try to replace the baseUrl with hugo -b "url1" only main index page will show the url1 in the code.

bep commented 6 days ago

Please use https://discourse.gohugo.io/ for questions/troubleshooting. Also see Hugo Documentation.

cibersheep commented 5 days ago

Just for future references:

More useful link: https://gohugo.io/content-management/page-bundles/