From f36e0f1537568f0c2a3df3e1d1efbf13196f126c Mon Sep 17 00:00:00 2001 From: Chris Broadfoot Date: Thu, 16 Feb 2017 11:55:58 -0800 Subject: template: only use Go font for "go-fonts" post This change reverts the blog to use the system default font for all pages except the go-fonts post. Style selectors have been added to select that post and apply the fonts to it both on its own page as well as on the homepage. Regardless of anyone's personal opinions about the font, there were several negative comments about the font on social media sites for posts unrelated to the font. We want to encourage people to discuss the content of our articles rather than get tied up about their presentation. Change-Id: I107f57e289f408584e2e5f6a8de3a6a445ea42a4 Reviewed-on: https://go-review.googlesource.com/37137 Reviewed-by: Brad Fitzpatrick Reviewed-by: Russ Cox --- template/root.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/template/root.tmpl b/template/root.tmpl index cf1142c..c77a6d7 100644 --- a/template/root.tmpl +++ b/template/root.tmpl @@ -49,11 +49,12 @@ #content img { max-width: 100%; } - body { - font-family: Go, Arial, sans-serif; + .article[data-slug='/go-fonts'] { + font-family: Go, sans-serif; } - pre, code { - font-family: Go Mono, Menlo, monospace; + .article[data-slug='/go-fonts'] pre, + .article[data-slug='/go-fonts'] code { + font-family: Go Mono, monospace; } @@ -166,7 +167,7 @@ $(function() { {{end}} {{define "doc"}} -
+

{{.Title}}

{{.Time.Format "2 January 2006"}}

{{.HTML}} -- cgit v1.2.3