X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/2998247083406f914b3647cedd19abf5507bf2c6..refs/heads/rust:/src/generator/static_files.rs diff --git a/src/generator/static_files.rs b/src/generator/static_files.rs index 6804800..50f56d8 100644 --- a/src/generator/static_files.rs +++ b/src/generator/static_files.rs @@ -1,7 +1,7 @@ use std::fs::{copy, create_dir_all, read_dir}; use std::io::Result; use std::path::PathBuf; -use crate::post::Post; +use crate::template::TemplateContext; fn recursively_copy(source: &PathBuf, target: &PathBuf) -> Result<()> { let entries = read_dir(source)?; @@ -23,7 +23,7 @@ fn recursively_copy(source: &PathBuf, target: &PathBuf) -> Result<()> { Ok(()) } -pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &Vec) -> Result<()> { +pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> { if source.exists() { return recursively_copy(source, target) }