Edit This Page on GitHub

If you’re running an open source project with GitHub and use GitHub Pages for your project site or documentation there is a neat trick you might not know of.

You can easily add a link on any page to the current file on GitHub with Jekyll.

{{ site.github.repository_url }}/blob/master/{{ page.path }}

Which will in this case output:

This demo link will take you to the correct markdown file on GitHub.

You can also try clicking the GitHub corner in the upper right corner.

Like this article? Reach out to me and say hi on Twitter! :wave:
All articles written with ♥ by Vincent Klaiber