Zola serve works but zola build doesn't (with custom css)

The problem is:
My (open) website uses custom css

Is completely broken when deployed (and locally with zola build):
https://anatolybuga.github.io/finestway/

While locally with zola serve it works well.

Question:
Why locally zola serve works while zola build doesn’t ?

There are 2 similar topics
One topic on the forum mentions base_url. If I set base_url to the original example(https–mattimustang.github.io–zola-grayscale), it won’t render my own css. If I set the url where I want to serve my site, it’s all broken:

The other topic mentions wrong content-type, which in my case is:
content-type:
text/html; charset=utf-8

I think you should set gh-pages branch under Build and deployment in the settings of your Github repository. - https://github.com/AnatolyBuga/finestway/settings/pages.

Thanks @sal , let me try. I see why you suggest this = hrefs point to the non existent url. ILet me try, thanks alot.

@sal , thanks alot, that worked indeed! Images are case sensitive , so that was another mistake from me

1 Like