From 155e400dc57912c5f052add5c316fd3c29185ca3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 30 Jan 2016 12:34:22 -0800 Subject: [PATCH] Hide edit on github on frontpage and component page --- sass/custom/_paulus.scss | 2 ++ source/_includes/edit_github.html | 4 +++- source/components/index.html | 1 + source/index.html | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index 65bf1fed0a8..0050821c81d 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -403,4 +403,6 @@ p.note { .edit-github { text-align: right; + margin-bottom: 8px; + font-size: .8em; } diff --git a/source/_includes/edit_github.html b/source/_includes/edit_github.html index 22c4a524ce9..be883cf42a2 100644 --- a/source/_includes/edit_github.html +++ b/source/_includes/edit_github.html @@ -1 +1,3 @@ -
Edit this page on GitHub
\ No newline at end of file +{% if page.hide_github_edit != true %} +
Edit this page on GitHub
+{% endif %} \ No newline at end of file diff --git a/source/components/index.html b/source/components/index.html index 14f582cd103..d4df448da67 100644 --- a/source/components/index.html +++ b/source/components/index.html @@ -8,6 +8,7 @@ comments: false sharing: true footer: true is_homepage: true +hide_github_edit: true body_id: components-page regenerate: true --- diff --git a/source/index.html b/source/index.html index b79b7657b80..e269f78d9c4 100644 --- a/source/index.html +++ b/source/index.html @@ -6,7 +6,9 @@ show_title: false sidebar: false hero_unit: true is_homepage: true +hide_github_edit: true description: Open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Installation in less than a minute. +hide_github_edit: true ---