Gitlab pages - baseurl & navigation #220
Unanswered
freshreplicant
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Do you have a repo where I can see the configuration for this site? I have not tried deploying Hugo sites using Gitlab so I'm not entirely sure what the issue might be here. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm hosting a hugo site using the congo theme on Gitlab pages and I'm unable to get links to subpages to work properly. The site works perfectly locally, with various links like http://localhost:1313/about/ or http://localhost:1313/blog/ redirecting to the right page. However, on the live Gitlab pages site, click 'About' or 'Blog' just brings me back to the main page. Mousing over I can also see that the link does not redirect to www.mywebsite.com/blog or www.mywebsite.com/about, but to www.mywebsite.com. However, if I manually go to www.mywebsite.com/blog or www.mywebsite.com/about both sites display and work perfectly.
Somebody in the hugo community pointed out to me that this might be due to the baseurl being set to a custom domain, rather than my Gitlab pages URL (see here). But changing it to anything but my custom domain totally breaks the theming and the navigation still doesn't work. This leads me to believe that maybe I should leave the baseurl as my custom domain, but I am at a loss how to get the navigation to work properly.
Any advice would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions