Commit 5f2cda58 authored by Andrew Gerrand's avatar Andrew Gerrand

doc: only show Share button when enabled

Change-Id: I571965bc38a8b1060642a942b898797327f0c19c
Reviewed-on: https://go-review.googlesource.com/14195Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent dd42eff8
<!--{ <!--{
"Path": "/" "Path": "/",
"Template": true
}--> }-->
<div class="left"> <div class="left">
...@@ -25,7 +26,9 @@ Hello, 世界 ...@@ -25,7 +26,9 @@ Hello, 世界
</div> </div>
<div class="buttons"> <div class="buttons">
<a class="run" href="#" title="Run this code [shift-enter]">Run</a> <a class="run" href="#" title="Run this code [shift-enter]">Run</a>
{{if $.Share}}
<a class="share" href="#" title="Share this code">Share</a> <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> <a class="tour" href="//tour.golang.org/" title="Learn Go from your browser">Tour</a>
</div> </div>
<div class="toys"> <div class="toys">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment