diff options
author | Andrew Gerrand <adg@golang.org> | 2016-11-17 13:48:15 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2016-11-17 02:50:40 +0000 |
commit | 44f17a108ad6d3c2ab63233a43368d7a21fe98a3 (patch) | |
tree | eefb6d147c530fac662bd5f998d2c8903fe5bd2a /blog/blog.go | |
parent | c129568cc4ace90e54382dddc3e0ff44b19941f3 (diff) |
blog: fix serving of fonts on App Engine
Change-Id: I4c1fc9b10440b8e99a04614d89ac1fe0db58ae68
Reviewed-on: https://go-review.googlesource.com/33260
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'blog/blog.go')
-rw-r--r-- | blog/blog.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blog/blog.go b/blog/blog.go index 08125df..9d861c1 100644 --- a/blog/blog.go +++ b/blog/blog.go @@ -37,7 +37,8 @@ func init() { } http.HandleFunc("/blog", redirect) http.HandleFunc("/blog/", redirect) - + http.Handle("/fonts/", http.FileServer(http.Dir("static"))) + http.Handle("/fonts.css", http.FileServer(http.Dir("static"))) http.Handle("/lib/godoc/", http.StripPrefix("/lib/godoc/", http.HandlerFunc(staticHandler))) } |