Project site shows organization site #21622
-
My project site for a repo named ‘groceries’ (kosi.dev/groceries/) does not show the contents of the grocery repo. Instead, it shows the contents of the organization site (kosi.dev/). I am using separate branches named ‘gh-pages’ for both repos, and the sites are written with Svelte. repos: github.comkosi-dev/kosi-dev.github.ioContribute to kosi-dev/kosi-dev.github.io development by creating an account on GitHub. kosi-dev/groceriesContribute to kosi-dev/groceries development by creating an account on GitHub. How can I make the project site display it’s own content? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👋 Welcome! This is hard to be certain of because of the custom domain but - I’ve seen similar before and I suspect the problem is the Because of the way the Pages URLs work, your organisation repository will be at
And any folder in that Pages repository will show up as
(in this case, your A separate Pages site in your organisation will be hosted at
This means that you can’t have a Again, harder to troubleshoot with the custom domain on top of this, but changing that folder name would be the first thing I would try. Rebuid, and then clear caches and see :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! I was able to find a solution. When building with Svelte, a |
Beta Was this translation helpful? Give feedback.
Thanks for the response! I was able to find a solution.
When building with Svelte, a
build
folder is generated. This folder is referenced to inindex.html
. The problem seems to be that the index file in the groceries repo was pointing to the build folder in the organization repo. Addinggroceries/
to the refs solved the problem.