Site works fine on localhost, but can't get it to work on github

I’ve downloaded the hugo-universal-theme and used ReText to edit the template files to my liking, but I can’t get the site to work…

What am I doing wrong, and yes, I’m quite new to the whole git-hub technology…

@gandric

I’m going to need more to go off of. Can you point me to a repo? Also, what do you mean that you can’t get it to work on GitHub? Are you talking about GH Pages?

I’m just starting off with hugo and jekyll, hugo worked fine on my machine and I managed to setup a nice site using the universal theme, but I probably did something wrong in the process of taking it to git…

Please take a look…

So you’re only uploading source and not the published site to GitHub pages. Jekyll is natively supported by GitHub, but Hugo is not. So GitHub is not going to go through the process of building your site for you. There is an updated walkthrough in the docs concept being developed:

https://hugodocs.info/hosting-and-deployment/hosting-on-github/

Thanks, I’ll concentrate on working with Jekyll instead…

The setup with GitHub pages with Hugo is pretty easy, and the Hugo community has no say over the tools GH chooses for native support with static site generators. However, Jekyll is pretty fantastic software as well.

Also in the docs is a tutorial on hosting with Netlify, which you could take care of with your current source by clicking a couple buttons. Much easier in many ways than GitHub pages and with a slew of cool, free features…

Good luck with your Jekyll studies :smile:

will try, thanks again…

It didn’t took me long to realize that Jekyll sucks - gems suck…
I was able to get a local working site with Hugo within an hour or so, and I’m gonna tweak the universal theme to my liking, though I have to learn some essential CSS and Bootstrap tech to do so…

1 Like