why is my hugo site not building on github pages?

Viewed 935
1 Answers

You can follow the Hugo documentation "Host on GitHub", but you would need two different repositories:

As mentioned in the GitHub Pages documentation, you can host a user/organization page in addition to project pages.
Here are the key differences in GitHub Pages websites for Users and Organizations:

  • You must use a <USERNAME>.github.io to host your generated content
  • Content from the main branch will be used to publish your GitHub Pages site

This is a much simpler setup as your Hugo files and generated content are published into two different repositories.

Related