Add edit on GitHub link

This commit is contained in:
Paulus Schoutsen 2016-01-22 00:12:39 -08:00
parent b077402243
commit 48e3696239
4 changed files with 9 additions and 4 deletions

View File

@ -203,10 +203,6 @@ p.note {
}
}
#site-search .search {
width: calc(100% - 36px);
}
.install-instructions-container {
#normal-install, #raspberry-install, #docker-install, .install-instructions {
display: none;
@ -404,3 +400,7 @@ p.note {
height: 100%;
}
}
.edit-github {
text-align: right;
}

View File

@ -1,5 +1,7 @@
{% assign components = site.components | sort: 'title' %}
<section class="aside-module grid__item one-whole lap-one-half">
{% include edit_github.html %}
<div class='brand-logo-container section'>
{% if page.logo %}
<img src='/images/supported_brands/{{ page.logo }}' />

View File

@ -0,0 +1 @@
<div class='edit-github'><a href='https://github.com/balloob/home-assistant.io/tree/master/source/{{ page.path }}'>Edit this page on GitHub</a></div>

View File

@ -4,6 +4,8 @@ layout: default
<article class="page">
{% include edit_github.html %}
{% if page.title and page.show_title != false %}
<header>
<h1 class="title indent">