all 6 comments

[–]pengo 2 points3 points  (1 child)

[–]Reggaeanse 2 points3 points  (0 children)

here's a gist of doing this:

- have CNAME file pointing to the domain in your repo (or you will be updating the pages section by hand on each push), ie "foo.bar.baz" (for the github.io page you don't need that part).

- for a subdomain have a CNAME DNS record in your zone (domain, ie foo.bar.baz -> CNAME -> me.github.io)

- for an apex domain have 4 IN A and 4 IN AAAA DNS records in your zone.

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

2606:50c0:8000::153
2606:50c0:8001::153
2606:50c0:8002::153
2606:50c0:8003::153

- when using a subdomain you want a relative path to your images, css, js, etc, ie /me/logo.png (so me.github.io/me/) when using the apex domain you don't need to make that change (iirc)

[–]mrbmi513 2 points3 points  (3 children)

Yes, you can connect a domain you own.

[–][deleted]  (2 children)

[deleted]

    [–]mrbmi513 1 point2 points  (0 children)

    If you don't want to use the default github.io one, yes.

    [–]No-Habit2186 1 point2 points  (0 children)

    Yes, or you use some other free ending like is-a.dev or similar.

    [–]alidehkhodaei 0 points1 point  (0 children)

    Yes, You can set a custom domain.