Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 787 Bytes

edit-on-github-link.md

File metadata and controls

30 lines (19 loc) · 787 Bytes

Edit on GitHub link

The plugin also makes a tag available that generates links to edit the current page on GitHub.

To generate a link

<p>This site is open source. {% raw %}{% github_edit_link "Improve this page" %}{% endraw %}</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>

To generate a path

If you'd prefer to build your own link, simply don't pass link text

<p>This site is open source. <a href="{% raw %}{% github_edit_link %}{% endraw %}">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>