Deploying a website with Hugo and Github.

I have just switched from Jekyll and a theme called Xixia to Hugo recently. Hugo is just simple, clean and having a larger community. However I did spend some time on deploying my webpage on Github, which was supposed to be really easy. The instruction here gives a way to deploy your web but ONLY with the repository name. For example, it makes my GitHub page look like rui-gong-0791.github.io/rui-gong-0791.github.io so you can host different webpages under your main GitHub page. I spent a lot time on trying to follow this instruction and getting rid of the repository name. Unfortunately, I haven’t found a way.

As a compromise, I gave up on this fancy instruction and switch to the most traditional way: generate html files from Hugo and only push them to GitHub, which gives the webpage you are reading now. Weirdly, this failed the first time because of GitHub itself and made me spent another hour on trying that instruction. Anyways, it works perfectly now.