Hello,
If I set baseURL = "https://myurl.org"
everything works fine. But actually I would like my blog to be under /blog
.
When I use `baseURL = “https://myurl.org/blog” 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.html
and 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.
3 Likes
@alexandros thanks a lot! This was a super helpful reply and quite detailed! Highly appreciated.