GitHub Hosting - index.html

Hello Hugophers,
I have created and pushed a blog to GitHub with a gh-page setup. I followed the instructions and guidelines for hosting on a Github User project space.

  • Have the config.toml baseURL set as :username.github.io
  • Deployed as per script.

But my blog page does not open on :username.github.io, I’m only able to open the page :username.github.io/index.html , I had previously once hosted with no issues I don’t what’s the catch all of a sudden. This might be some configuration issue, can someone help with this?

Thank You!

Just add a .nojekyll file on your root.

Cf. https://docs.github.com/en/github/working-with-github-pages/about-github-pages#static-site-generators

Thank you!
I gave it a while, seems like it’s working now without .nojekyll but I’ll push one with .nojekyll file.

How do I maintain a master (public part of the site) and a different branch (for the source).
Could you guide me on that!

I never use branches (for public/sources séparation). I use a /docs folder in my master branch.

[I don’t use gh-pages anymore. I work with Netlify.]

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.