doc: only show Share button when enabled
Change-Id: I571965bc38a8b1060642a942b898797327f0c19c
Reviewed-on: https://go-review.googlesource.com/14195
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/doc/root.html b/doc/root.html
index 1217368..27dbc74 100644
--- a/doc/root.html
+++ b/doc/root.html
@@ -1,5 +1,6 @@
<!--{
- "Path": "/"
+ "Path": "/",
+ "Template": true
}-->
<div class="left">
@@ -25,7 +26,9 @@
</div>
<div class="buttons">
<a class="run" href="#" title="Run this code [shift-enter]">Run</a>
+{{if $.Share}}
<a class="share" href="#" title="Share this code">Share</a>
+{{end}}
<a class="tour" href="//tour.golang.org/" title="Learn Go from your browser">Tour</a>
</div>
<div class="toys">