CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
356 stars 109 forks source link

/scss/style.min.***.css ERR_FILE_NOT_FOUND, but hugo server works #48

Closed bofeng96 closed 6 months ago

bofeng96 commented 6 months ago

image

CSS rendor somehow fails because of missing files. When I open *.html in /public, css is not loading. Same issue when I use hugo with netlify.

But when run hugo server locally, everything is good.

Any hints?

bofeng96 commented 6 months ago

it's fine. I figure it out. Without a web server, it's supposed to be not working.

And the reason hugo with netlify fails to load css, is I miss the www. for the baseurl

CaiJimmy commented 6 months ago

https://github.com/CaiJimmy/hugo-theme-stack-starter/blob/02a12d4dfe1800e032fe7a0f8ac79a9949764d74/config/_default/config.toml#L2C1-L3C1

Check baseurl is set.