i have written a little blog about setting up a Hugo blog on Github Pages with a custom domain.
The blog is off course written with Hugo (i am starting now so bare with me), and is actually the same setup as described above.
Feel free to drop any suggestions, they are always welcome.
I really liked the compactness and simpleness of your instructions, especially compared to some of the more convoluted tutorials, even here on gohugo.io. I felt a lot more like I understood what I was doing, not just typing things I didn’t really comprehend.
Having said that, it seems that all of the files went where I wanted them to on Github, but there is no html file in the root, so I got a 404 error, with both the plain github url and with a CNAME file in place.
So it seems like I have maybe one thing missing, but I’m not sure where…
Thanks for your kind words.
when creating an empty hugo site hugo new site . and executing hugo -d {path to {username}.github.io} will create at least 4 files (on my machine index.html,404.html,index.xml,sitemap.xml). is this not so in your case?
Those files are being created on my local drive, but it seems that when I run the following commands in step 5 I am pushing my source files, not the mirrored public files. Here are my local paths:
yes. you should move to the folder where the tool generates it’s files, which is in your case C:\Users\Glenn\Documents\Websites\GithubPages\username.github.io. and then add/commit/push. Can you try?
I ended up doing a git push -f and that seems to have worked. The files on github now match my local files. Still dealing with some caching issues, I think, but at least I believe I have the workflow settled.