inject livereloader for 404 template
This commit is contained in:
parent
7cff1d335c
commit
885c7ded80
|
@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue