This has been encorporated into the GitHub Metadata plugin.
A Jekyll tag that generates links to edit the current page on GitHub
gem 'jekyll-edit-link'
jekyll-edit-link
to the list of plugins in your site's config<p>This site is open source. {% edit_link "Improve this page" %}</p>
Produces:
<p>This site is open source. <a href="https://github.com/benbalter/jekyll-edit-link/edit/master/README.md">Improve this page</a></p>
If you'd prefer to build your own link, simply don't pass link text
<p>This site is open source. <a href="{% edit_link %}">Improve this page</a></p>
Produces:
<p>This site is open source. <a href="https://github.com/benbalter/jekyll-edit-link/edit/master/README.md">Improve this page</a></p>