1

I am trying to upload a Hugo Theme to a Github pages and cannot figure out where I am going wrong. I have tried multiple different sites and methods and coming up blank. This is there I started https://gohugo.io/hosting-and-deployment/hosting-on-github/ and no luck there. I am getting a 404 - file not found error when trying to access the site from tangerine2003.github.io

Running the site on my local host works every time. Could someone look over the below and tell me what I am doing wrong?

https://github.com/tangerine2003/tangerine2003.github.io

chris clifton
  • 133
  • 1
  • 13

1 Answers1

2

One possible issue is that your repository https://github.com/tangerine2003/tangerine2003.github.io is empty.

You need to make sure the step git push origin master mentioned in the "Host on GitHub" Hugo page does execute successfully, in order for GitHub pages to have anything to publish.


Update: what I know see in the GitHub repo is an Hugo project without the docs/ folder supposed to include the built HTML static pages.
The docs/ folder is mentioned in "Deployment of Project Pages from /docs folder on master branch".

The config.toml does not include publishDir = "docs", and you need to make sure your GitHub repo is set to publish what is in docs/.

https://help.github.com/assets/images/help/pages/select-master-branch-docs-folder-as-source.png

In short: publishing the Hug project is not enough: you need to add, commit and push as well the pages built from that Hugo project.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Sorry about that. It is added now. I had it added yesterday but erased it in all my efforts to figure out why it will not post – chris clifton Jul 09 '18 at 00:32
  • @chrisclifton I have updated my answer to answer your updated question and address your current GitHub repository content. – VonC Jul 09 '18 at 06:34