Skip to content

Commit bb8ad22

Browse files
author
Rishabh Chakrabarti
committed
[feat : Issue #433 ] Added github-edit-link to sidebar
This link will direct anyone who wants to edit this page directly to the Github path which contains the file. CHANGELOG : 1. Added the [GitHub Metadata] (http://jekyll.github.io/github-metadata/) plugin to Gemfile and Plugins 2. Added the link to the sidebar for license pages. Github issue #433
1 parent a4311ad commit bb8ad22

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ versions = JSON.parse(open('https://pages.github.com/versions.json').read)
88

99
gem 'github-pages', versions['github-pages']
1010

11+
gem "jekyll-github-metadata"
12+
1113
group :development do
1214
gem 'colored'
1315
gem 'fuzzy_match'

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ plugins:
4040
- jekyll-redirect-from
4141
- jekyll-seo-tag
4242
- jekyll-coffeescript
43+
- jekyll-github-metadata
44+
4345

4446
sass:
4547
style: :compressed

_includes/sidebar.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<div class="sidebar">
22

3+
{% github_edit_link "Help improve this page" %}
4+
35
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
46

57
<div class="how-to-apply">

0 commit comments

Comments
 (0)