mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
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>
This commit is contained in:
parent
dd42eff8fe
commit
5f2cda5867
|
@ -1,5 +1,6 @@
|
|||
<!--{
|
||||
"Path": "/"
|
||||
"Path": "/",
|
||||
"Template": true
|
||||
}-->
|
||||
|
||||
<div class="left">
|
||||
|
@ -25,7 +26,9 @@ Hello, 世界
|
|||
</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">
|
||||
|
|
Loading…
Reference in a new issue