Hugo site not rendering

Hi, I’ve been trying to make Hugo working for 3 days but I can’t understand what I do wrong.

When I turn on Hugo server, the site is displayed correctly. However, when I render it by typing Hugo the site is all messed up with just basic html with no layout. This is my site: bonoms.com - Google Drive .

`bonoms.com hugo env

hugo v0.81.0+extended darwin/amd64 BuildDate=unknown
GOOS=“darwin”
GOARCH=“amd64”
GOVERSION=“go1.16”`

I think you need to set a baseURL in your config.toml file. At the moment your CSS file is being referenced at ‘example dot com’:
http://example.com/css/style.1d8233f454bf6bbf46abed7023dbbba557fc4af5f1e39de066ac496c94409622.css
Your CSS file is present on the correct url:
http://bonoms.com/css/style.1d8233f454bf6bbf46abed7023dbbba557fc4af5f1e39de066ac496c94409622.css
This problem is affecting the links to other pages on the site as well.

2 Likes

I’ve tried to do that but it doesn’t seem to work, I still get everything messed up.

If you want to have a look here’s what I get: http://www.bonoms.com

Why do I need to set base url? I’ve seen many tutorials but nobody said that.
Thank you for your time @andytough.

Hi, Sorry, I think the way I phrased my first comment may have been confusing.

The baseURL in the config.toml file should be set to: http://www.bonoms.com/

The theme makers Github page has a sample config.toml file that might help.

You might like to run through this tutorial to get an idea of how Hugo works.

This page lists external resources for learning Hugo. I found Mike Dane’s video tutorial particularly helpful.

thank youuuu, it worked!!

1 Like

Great news! It is looking good.

Not quite there…

https://www.bonoms.com/

The protocol in the baseURL should be https.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.