From d08c19b44eaf0268fc804ea29aa8889437c4fd4c Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 16:29:16 -0700 Subject: [PATCH] support 404 page --- template/404.html | 24 ++++++++++++++++++++++++ tool/generate.go | 1 + 2 files changed, 25 insertions(+) create mode 100644 template/404.html diff --git a/template/404.html b/template/404.html new file mode 100644 index 0000000..964c0a2 --- /dev/null +++ b/template/404.html @@ -0,0 +1,24 @@ + + + + + Go by Example: Not Found + + + + +
+

Go by Example

+

Sorry, we couldn't find that!

+
+ + diff --git a/tool/generate.go b/tool/generate.go index 0537375..84dc408 100644 --- a/tool/generate.go +++ b/tool/generate.go @@ -239,6 +239,7 @@ func main() { ensureDir(siteDir) copyFile("template/site.css", siteDir+"/site.css") copyFile("template/favicon.ico", siteDir+"/favicon.ico") + copyFile("template/404.html", siteDir+"/404.html") chapters := parseChapters() renderIndex(chapters) renderChapters(chapters)