feat: add --force flag to force rebuild
This commit is contained in:
parent
5271c4c9aa
commit
001ca4879a
3 changed files with 33 additions and 25 deletions
|
|
@ -29,7 +29,7 @@ pub fn build(config: &Config, feed_store: &mut FeedStore) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn create_tera(templates_dir: &str) -> Result<Tera> {
|
||||
fn create_tera(templates_dir: &Utf8Path) -> Result<Tera> {
|
||||
let dir = to_checked_pathbuf(templates_dir);
|
||||
let mut tera = tera::Tera::new(&format!("{dir}/*"))?;
|
||||
// disable autoescape as this would corrupt urls or the entriy contents. todo check this!
|
||||
|
|
|
|||
Loading…
Reference in a new issue