jekyll-edit-link

jekyll-edit-link

A Jekyll tag that generates links to edit the current page on GitHub

This has been encorporated into the GitHub Metadata plugin.


Jekyll Edit Link

A Jekyll tag that generates links to edit the current page on GitHub

Installation

  1. Add the following to your site's Gemfile gem 'jekyll-edit-link'
  2. Add the jekyll-edit-link to the list of plugins in your site's config

Usage

<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>

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="{% 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>
jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer