Hugo based Github Pages on Cloudflare Issues

I’m new to “web development” (I just wanted to make a blog).

I own a custom domain I bought from godaddy and run through cloudflare.

I had the site running on Github Pages at

techmannags.github.io

but I wanted the custom domain

thinkstoomuch.net

Now that I thought I set it up, I get this 404 page from github

I tried removing the custom domain from the Pages tab in github, but doing that just makes the page black. Which makes me think I don’t have it fully moved over from GoDaddy as that’s what it looked like when GoDaddy was doing the DNS.

repo for my website is here

I don’t know how to make an index.html page and I thing Hugo (the static site generator) can generate one, but we’re quickly leaving what I know TBH.

This also all works locally fine.

I followed the guide from Networkchuck on this topic and it worked just fine for me.
Timestamped:

1 Like

It turns out I forgot to run the command

hugo

in my directory which builds the index.html page

Then I needed to move the contents of the “public” directory into the root directory so in my case the quickstart directory.

now I’m here

The left side is my github pages site with the right custom domain and everything. the right is my dev server running the same code locally.

So a new problem of why is my theme not working in the “prod” version as it were

1 Like