vinkla.com

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:

https://github.com/vinkla/vinkla.github.io/blob/master/_posts/2016-09-04-edit-page-github.md

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