Make 'Edit this Page' opt-in instead of opt-out

pull/43/head
John Mulhausen 2016-02-11 02:30:20 -08:00
parent 8b62b8c823
commit 3f61eca72f
3 changed files with 3 additions and 2 deletions

View File

@ -22,4 +22,5 @@ defaults:
values: values:
version: "v1.1" version: "v1.1"
versionfilesafe: "v1_1" versionfilesafe: "v1_1"
showedit: true
permalink: pretty permalink: pretty

View File

@ -28,7 +28,7 @@ layout: headerfooter
{% include tree.html %} {% include tree.html %}
</div> <!-- /pi-accordion --> </div> <!-- /pi-accordion -->
</div> <!-- /docsToc --> </div> <!-- /docsToc -->
<div id="docsContent">{% if page.hideedit != true %}<a href="/{{ page.version }}/editdocs#{{ page.path }}" class="button" style="float:right;margin-top:20px;">Edit This Page</a>{% endif %} <div id="docsContent">{% if page.showedit == true %}<a href="/{{ page.version }}/editdocs#{{ page.path }}" class="button" style="float:right;margin-top:20px;">Edit This Page</a>{% endif %}
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{{ content }} {{ content }}
<p><a href=""><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ page.path }}?pixel" alt="Analytics" /></a> <p><a href=""><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ page.path }}?pixel" alt="Analytics" /></a>

View File

@ -1,7 +1,7 @@
--- ---
title: Editing the Kubernetes Documentation title: Editing the Kubernetes Documentation
section: support section: support
hideedit: true showedit: false
--- ---
<script language="JavaScript"> <script language="JavaScript">