Wednesday, July 4, 2012 SEO Friendly Gists
Recently I converted the code samples on my blog to use GitHub Gist.
Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.
Gist also has a couple of other drawbacks:
- if Gist is ever taken offline my code samples would be lost.
I think this is a great solution, but there are a couple of gotchas to look out for:
- if you ever amend a gist you'll need to re-generate the embed code to ensure the noscript content is correct.
- inside the noscript tag you'll need to add a pre tag to format your code nicely.
Be the first to add a comment!