feat: add --force flag to force rebuild

This commit is contained in:
selfhoster selfhoster 2025-04-15 13:27:32 +02:00
commit 001ca4879a
3 changed files with 33 additions and 25 deletions

View file

@ -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!