Implemented the "Improve this page" feature. #3495

Created an "Improve this page" link for all the documentation headers. The
feature uses the fa-pencil icon of font awesome. Improvement over #3504(closed).

See issue #3495 for more information.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
Martin Jorn Rogalla 2015-02-24 22:04:49 +01:00
parent 5c388309b2
commit 13f8227877
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,9 @@ layout: default
<div class="unit four-fifths"> <div class="unit four-fifths">
<article> <article>
<div class="improve right">
<a href="https://github.com/jekyll/jekyll/edit/master/site/{{ page.path }}">Improve this page <i class="fa fa-pencil"></i></a>
</div>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{{ content }} {{ content }}
{% include section_nav.html %} {% include section_nav.html %}

View File

@ -20,3 +20,6 @@
.fa-link:before { .fa-link:before {
content: "\f0c1"; content: "\f0c1";
} }
.fa-pencil:before {
content: "\f040";
}

View File

@ -528,6 +528,12 @@ aside {
} }
} }
.improve {
margin-top: 0;
padding: 25px 0 0;
font-size: 16px;
}
.docs-nav-mobile select { .docs-nav-mobile select {
color: #000; color: #000;
width: 100%; width: 100%;