Url with github pages contains github.io/github.io/

I am trying to publish with github pages. I created the repository github dot io (forum rules limit how many links my post can include) and added a test page index dot html

and then published via Settings->Pages but this creates the url

https://matthewjohnsondurham.github.io/github.io/

The extra github dot io is unexpected.

What I have done wrong, and how can I create the desired url?

To create a user page (without the repository name in the path) your repository needs to be named with the pattern <username>.github.io, so in your case matthewjohnsondurham.github.io, not just github.io.

See: About GitHub Pages - GitHub Docs

Thanks a lot – wasn’t reading the docs carefully enough