Verifying GitHub Profile with Mastodon

When signing up on Mastodon, I wanted to include a verified link to my GitHub. GitHub allows for adding HTML to your profile repository, but this does not come through as a verified link. I came across a great blog post by Simon Willison giving a detailed look at setting up a quick GitHub Pages redirect.

The concept is make a new repo, GITHUB_USERNAME.github.io, then add a page called index.html. My redirect snippet can be viewed in my GitHub Repository. At the time of writing, my index.html is as follows:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Redirecting to github.com/overtfuture</title>
    <meta http-equiv="refresh" content="0; URL=https://github.com/overtfuture">
    <link href="https://github.com/overtfuture" rel="me">
    <link href="https://nathangrey.dev" rel="me">
    <link href="https://studioember.com" rel="me">
    <link href="https://mastodon.social/@ngrey" rel="me">
  </head>
  <body style="margin: 0; padding: 0">
    Auto redirect to GitHub
    <a href="https://github.com/overtfuture">
      github.com/overtfuture
    </a>
  </body>
</html>

This makes a bare minimum site that includes a simple page that will redirect via browser to a GitHub profile and allow for verification on Mastodon.

Nathan Grey @overtfuture

@ngrey@mastodon.social