cmd/present: only include play.js in article when necessary
There is no need to add play.js in article page when playground is disabled. Signed-off-by: Tw <tw19881113@gmail.com> Change-Id: If40d256c89d7bd37efff9e08bb176bd3ea2d6f88 Reviewed-on: https://go-review.googlesource.com/16415 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
f96de0f7c8
commit
6a71ab8780
|
@ -56,7 +56,11 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{if .PlayEnabled}}
|
||||||
<script src='/play.js'></script>
|
<script src='/play.js'></script>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
// Load Google Analytics tracking code on production site only.
|
// Load Google Analytics tracking code on production site only.
|
||||||
|
|
Loading…
Reference in New Issue