From 6a71ab8780826416708c47687337091a434d7b3b Mon Sep 17 00:00:00 2001 From: Tw Date: Wed, 28 Oct 2015 17:07:50 +0800 Subject: [PATCH] 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 Change-Id: If40d256c89d7bd37efff9e08bb176bd3ea2d6f88 Reviewed-on: https://go-review.googlesource.com/16415 Reviewed-by: Andrew Gerrand --- cmd/present/templates/article.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/present/templates/article.tmpl b/cmd/present/templates/article.tmpl index 61652778..411f00b1 100644 --- a/cmd/present/templates/article.tmpl +++ b/cmd/present/templates/article.tmpl @@ -56,7 +56,11 @@ {{end}} + + {{if .PlayEnabled}} + {{end}} +