mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-18 09:29:03 +08:00
add edit link and favicon
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user