cannot render proper html file links in public folder
epogrebnyak opened this issue · 1 comments
epogrebnyak commented
I'm trying to use Whisperer theme for a static website on Github Pages.
A website renders fine with hugo serve
. If I want to persist it into static files with 'hugo' I'm in trouble.
- CSS not found
This I fix by relativeURLs = true
- The theme layout always points to
folder
(eg right side menu, content folder index page) notfolder/index.html
This makes static file output unusable on local browser or Github Pages. I would expect a hosting service to redirect folder
to folder/index.html
, but that does not happen.
Maybe it is because uglyURLs = true
have an effect in Whistoer theme?
Some of approach is addressed at gohugoio/hugo#4642, but I see no solution for Whisper theme there.
epogrebnyak commented
Update: this helped for Github Pages.
# baseURL = ... // no baseURL set
relativeURLs = true
uglyURLs = false