From ac6d9c1d842f9b6482f39f7a172e0251a0f7cbc0 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 18 Sep 2015 14:26:40 +1000 Subject: [PATCH] cmd/present: include Google Analytics tracking code for talks.golang.org This was formerly inserted by some deployment scripts. Putting it in the code here simplifies deployment at little cost to other users. Change-Id: Ic092bb560c4c90e0e5bc6f9f33426b35214d613d Reviewed-on: https://go-review.googlesource.com/14741 Reviewed-by: Andrew Gerrand --- cmd/present/templates/article.tmpl | 27 ++++++++++++++++++++++++ cmd/present/templates/dir.tmpl | 29 ++++++++++++++++++++++++- cmd/present/templates/slides.tmpl | 34 +++++++++++++++++++++++++++--- 3 files changed, 86 insertions(+), 4 deletions(-) diff --git a/cmd/present/templates/article.tmpl b/cmd/present/templates/article.tmpl index 40d1c936..61652778 100644 --- a/cmd/present/templates/article.tmpl +++ b/cmd/present/templates/article.tmpl @@ -7,6 +7,23 @@ {{.Title}} + @@ -40,6 +57,16 @@ + {{end}} diff --git a/cmd/present/templates/dir.tmpl b/cmd/present/templates/dir.tmpl index 15cf97f6..1732623d 100644 --- a/cmd/present/templates/dir.tmpl +++ b/cmd/present/templates/dir.tmpl @@ -1,10 +1,27 @@ - + Talks - The Go Programming Language + @@ -77,5 +94,15 @@ and code is licensed under a BSD license Privacy Policy + diff --git a/cmd/present/templates/slides.tmpl b/cmd/present/templates/slides.tmpl index 11070d2d..2b4ec988 100644 --- a/cmd/present/templates/slides.tmpl +++ b/cmd/present/templates/slides.tmpl @@ -7,6 +7,23 @@ {{.Title}} + @@ -54,10 +71,21 @@ (Press 'H' or navigate to hide this message.) + {{if .PlayEnabled}} + + {{end}} + + - {{if .PlayEnabled}} - - {{end}} {{end}}