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:
Tw 2015-10-28 17:07:50 +08:00 committed by Andrew Gerrand
parent f96de0f7c8
commit 6a71ab8780
1 changed files with 4 additions and 0 deletions

View File

@ -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.