aboutsummaryrefslogtreecommitdiff
path: root/src/generator/static_files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator/static_files.rs')
-rw-r--r--src/generator/static_files.rs4
1 files changed, 2 insertions, 2 deletions
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<Post>) -> Result<()> {
+pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
if source.exists() {
return recursively_copy(source, target)
}