Using GitHub Pages with a Naked Domain

I’ve been tweaking a few things about this website, so I thought I’d share my learnings with everyone. This blog is powered by the static site generator Jekyll, and it’s completely static. You basically write your posts in Markdown, Jekyll generates a static site from those files, and then the static site can be served up very cheaply & easily from S3/CDN/blob storage of any sort. No server-side logic here. GitHub Pages makes it very simple to host this sort of website for free - you can see the repo for this website here. I came across a bit of conflicting information about how to setup a custom “naked” domain (no www), so I’m sharing my setup here.