Skip to content

Commit

Permalink
Implemented the "Edit this page" feature. jekyll#3495
Browse files Browse the repository at this point in the history
Created an "Edit this page" link for the footer of all the
documentation. The link uses the fa-pencil icon of font awesome.

See issue jekyll#3495 for more information.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
  • Loading branch information
MartinRogalla committed Feb 23, 2015
1 parent 249249f commit e109555
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/_layouts/docs.html
Expand Up @@ -13,6 +13,9 @@ <h1>{{ page.title }}</h1>
{{ content }}
{% include section_nav.html %}
</article>
<div class="sub-footer center align-center">
<a href="https://github.com/jekyll/jekyll/edit/master/site{{ site.branch }}/{{ page.path }}" class="edit">Edit this page <i class="fa fa-pencil"></i></a>
</div>
</div>

{% include docs_contents.html %}
Expand Down
3 changes: 3 additions & 0 deletions site/_sass/_font-awesome.scss
Expand Up @@ -20,3 +20,6 @@
.fa-link:before {
content: "\f0c1";
}
.fa-pencil:before {
content: "\f040";
}
6 changes: 6 additions & 0 deletions site/_sass/_style.scss
Expand Up @@ -528,6 +528,11 @@ aside {
}
}

.sub-footer {
padding: 15px;
font-size: 16px;
}

.docs-nav-mobile select {
color: #000;
width: 100%;
Expand Down Expand Up @@ -678,6 +683,7 @@ p { line-height: 1.5em; }

.left { float: left; }
.right { float: right; }
.center { margin: 0 auto; }
.align-right { text-align: right; }
.align-left { text-align: left; }
.align-center { text-align: center; }
Expand Down

0 comments on commit e109555

Please sign in to comment.