inject livereloader for 404 template

This commit is contained in:
Anton Lazarev 2018-12-07 20:47:01 -05:00
parent 7cff1d335c
commit 885c7ded80
No known key found for this signature in database
GPG key ID: FBD20243E0CD9104

View file

@ -627,9 +627,10 @@ impl Site {
ensure_directory_exists(&self.output_path)?;
let mut context = Context::new();
context.insert("config", &self.config);
let output = render_template("404.html", &self.tera, &context, &self.config.theme)?;
create_file(
&self.output_path.join("404.html"),
&render_template("404.html", &self.tera, &context, &self.config.theme)?,
&self.inject_livereload(output),
)
}