add rendering for 404.html when running zola serve

This commit is contained in:
Anton Lazarev 2018-12-06 20:06:54 -05:00
parent 83fc3867ab
commit 7cff1d335c
No known key found for this signature in database
GPG key ID: FBD20243E0CD9104

View file

@ -352,6 +352,7 @@ pub fn after_template_change(site: &mut Site, path: &Path) -> Result<()> {
site.render_orphan_pages()
}
"section.html" => site.render_sections(),
"404.html" => site.render_404(),
// Either the index or some unknown template changed
// We can't really know what this change affects so rebuild all
// the things