Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.
/ jekyll-edit-link Public archive

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

License

Notifications You must be signed in to change notification settings

benbalter/jekyll-edit-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Build Status

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

To generate a link

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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published