Path in baseURL

If I set baseURL = "" everything works fine. But actually I would like my blog to be under /blog.
When I use `baseURL = “” with the ezhil theme. All the CSS etc seems not t be loaded.
Am I using this wrong?

Hello @jubalh

Basically since your site will live in a subdirectory you need to make sure not to use a forward slash / in the beginning of a URL, because it will point to the host root and Hugo -as you found out- will not load these assets.

So create an override of partials/header.htmland then in lines 21-22, line 27 and line 29 make sure to remove the forward slash from the beginning of the URLs to these assets.


@alexandros thanks a lot! This was a super helpful reply and quite detailed! Highly appreciated.