I’m building my webpage with “Hugo“ command, but everything is broken… css not loading on all or some pages, some links points to actual URLs instead of local pages, etc
What I’m doing wrong? “Hugo Server“ just displays everything fine in localhost
Doing something like google-chrome public/index.html isn’t going to work (generally speaking) unless you’ve designed a site to be serverless.
Oh, so it’s fine to be broken locally? It should work when I actually host it in configured URL?
Presuming you’ve done everything correctly:
- Running
hugo serverlocally will render the site correctly - Running
hugothen serving the files inpublicwith a web server will render the site correctly.
Thanks, but I gotta ask one more kinda related thing… What’s up with “absURL“, “relURL“, etc? When and why should I use them?
