Hugo site renders properly on custom domain but not on default gitlab.io

I have a site which is served here: https://libregeo.com using GitLab pages. I’ve noticed that under the default domain, however, it does not display correctly: https://mhaffner.gitlab.io/libregeo. It seems as if Hugo is not rendering the site correctly here?

This is not that big of a deal since it is working correctly on the domain name that I plan to share, but I have another site that I plan to serve out from the gitlab.io domain that is also not rendering properly (mhaffner.gitlab.io/geog-111), so I suspect something similar is going on. I don’t want to buy a new domain just to test it out, but I wonder if it would work or if something else is going on.

I’ve had other Hugo sites render fine from username.gitlab.io/site, so I’m kind of dumbfounded here.

Using Rmarkdown, Blogdown, and Hugo btw.

Hello @haffnerm,

I think it has something to do with hugo baseURL. As its baseURL needed to be specified, it would generate links to resources with the baseURL which leads to the site not being rendered properly when accessing from links that is different than the set baseURL.

I hope that helps.

Rotanak