go.talks: omit empty authors section
LGTM=r
R=adg, r
CC=golang-codereviews
https://golang.org/cl/64100043
diff --git a/present/templates/article.tmpl b/present/templates/article.tmpl
index 3d7c47d..40d1c93 100644
--- a/present/templates/article.tmpl
+++ b/present/templates/article.tmpl
@@ -29,11 +29,13 @@
{{elem $.Template .}}
{{end}}{{/* of Section block */}}
- <h2>Authors</h2>
- {{range .Authors}}
- <div class="author">
- {{range .Elem}}{{elem $.Template .}}{{end}}
- </div>
+ {{if .Authors}}
+ <h2>Authors</h2>
+ {{range .Authors}}
+ <div class="author">
+ {{range .Elem}}{{elem $.Template .}}{{end}}
+ </div>
+ {{end}}
{{end}}
</div>
</div>