Skip to content

Commit

Permalink
Easy edit on github links with jekyll page.path
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsimper committed Oct 31, 2014
1 parent 2ab6352 commit 620cb94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _layouts/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
</ul>
</div>
<div id='doc-content'>
<span class="edit-on-github">
<a href="https://github.com/craftyjs/craftyjs.github.com/edit/master/{{page.path}}">Edit on Github</a>
</span>

<h2> {{ page.title }} </h2>
<h2> {{ page.title }} </h2>

{{ content }}
</div>
5 changes: 5 additions & 0 deletions global.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,8 @@ pre {
padding: 10px 20px;
}

.edit-on-github {
float: right;
margin: 20px;
}

0 comments on commit 620cb94

Please sign in to comment.