Hello all, I believe this one might be in between hugo and github pages but I am bit lost…
I have a personal website under username.github.io and with a custom domain which has some sub pages as /posts or projects.
I created some other repos with github pages and when I try to open it as username.github.io/repository_name it’s opened directly under the custom_domain.com/repository_name, but I guess that Hugo does not expect it and open the custom 404 page.
Any hint on how can I fix this?
Thanks
https://discourse.gohugo.io/t/personal-github-pages-site-with-custom-domain-conflicts-with-another-repo/52238/13
See GH docs.
If you set a custom domain for a user or organization site, by default, the same custom domain will be used for all project sites owned by the same account.
Yes, I saw the GH documentation.
In the linked answer
So, in your case, we could have renamed the droppin-dimes directory to dropping-dimes and it would have worked fine (no conflict).
Are you saying that creating a custom directory would avoid the 404?
Or the point is to avoid having a custom domain under a profile where multiple repos have gh pages?
That’s what I feared.
I just hoped that there would be a way for Hugo to identify that custom_domain.com/repo could be routed to the repo gh pages instead.
Yeah, this is a GitHub thing, not a Hugo thing.