From 7cff1d335cc15e73b349043b77204a9fb90bf6c4 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Thu, 6 Dec 2018 20:06:54 -0500 Subject: [PATCH] add rendering for 404.html when running zola serve --- components/rebuild/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/rebuild/src/lib.rs b/components/rebuild/src/lib.rs index dad6ede..ddc9668 100644 --- a/components/rebuild/src/lib.rs +++ b/components/rebuild/src/lib.rs @@ -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