Skip to content

Hugo Site on Master Branch #642

Answered by peaceiris
sirinath asked this question in Q&A
Aug 9, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

If your default branch is master (main) and you are using the gh-pages as the GitHub Pages branch

Just follow the README.

If you are using master branch as the GitHub Pages branch

If you are a senior GitHub user, you know that the GitHub Pages branch was limited to gh-pages or master only in the old days. Today, we can select any branch as the GitHub Pages branch.

  • Project repository: Only gh-pages. Today, any branch.
  • User repository (e.g. peaceiris/peaceiris.github.io): Only master. Today, any branch.

For more details and the latest spec, see the official documentation: GitHub Pages Documentation - GitHub Docs

Here is an example workflow for the old GitHub users.

Usecase:

  • source branc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sirinath
Comment options

@sirinath
Comment options

@peaceiris
Comment options

@peaceiris
Comment options

Answer selected by sirinath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants