I created my own personal website in Hugo by following the official documentation and some YouTube videos. After multiple trial and error cycles, I was able to host the website on GitHub pages. You can find the link to the website here.
I have purchased my domain at GoDaddy. However I am facing issues whenever I try to add the custom domain to my repository using the CNAME file. I am confident that I have correctly configured the DNS records.
The website works flawlessly whenever it uses the domain provided by GitHub Pages. But whenever I try to add the custom domain by following the method mentioned in the Hugo documentation, nothing happens for a few minutes. However, after 15-30 minutes, I get this bad version of the website. This happens every time.
I have tried all solutions, but I am still unable to add the custom domain successfully.
This is my GitHub repository link to the source files: Link
This is my GitHub repository link to the generated content: Link
Your help is greatly appreciated.
P.S.: I am new to Git and I know only the basics.