add edit link and favicon

This commit is contained in:
Samuel Sadok
2018-04-14 17:00:18 -07:00
parent 7b6be10e04
commit 9da5212a70
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -54,6 +54,15 @@
</header>
<section>
<div class="edit">
{% assign filename = page.url | replace_first: '/', '' | replace: '.html', '.md' %}
<!-- edit icon taken from GitHub -->
<svg transform="translate(0,1)" class="octicon octicon-pencil" viewBox="0 0 14 16" version="1.1" width="10" height="12" aria-hidden="true">
<path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"></path>
</svg>
<a href="https://www.github.com/madcowswe/ODrive/edit/gh-pages/{{ filename }}">edit on GitHub</a>
</div>
{{ content }}
</section>
+6
View File
@@ -388,6 +388,12 @@ details > div > p:last-child {
margin-bottom: 15px;
}
/*** edit link ***/
.edit {
float: right;
font-size: 12px;
}
/*** inline code ***/
:not(pre) > code {
background-color: #ededed;
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB