render to filenames corresponding to eventual urls

This commit is contained in:
Mark McGranaghan 2012-10-09 17:40:12 -07:00
parent c135e41ca5
commit 22c67aff07

View File

@ -228,7 +228,7 @@ func renderChapters(chapters []*Chapter) {
seg.CodeClasses = seg.CodeClasses + " empty" seg.CodeClasses = seg.CodeClasses + " empty"
} }
} }
chapterF, err := os.Create(siteDir + "/" + chapter.Id + ".html") chapterF, err := os.Create(siteDir + "/" + chapter.Id)
check(err) check(err)
chapterTmpl.Execute(chapterF, chapter) chapterTmpl.Execute(chapterF, chapter)
} }