support 404 page

This commit is contained in:
Mark McGranaghan
2012-10-09 16:29:16 -07:00
parent 35669e7100
commit d08c19b44e
2 changed files with 25 additions and 0 deletions

View File

@@ -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)