diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e868373b3..0ac0115732 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Fix some of YAML date parsing - Fix feed generation for languages not working in some cases (it was taking the value from the root of the config for feed_filenames) +- Ignore `.bck` files in `zola serve` ## 0.19.1 (2024-06-24) diff --git a/components/utils/src/fs.rs b/components/utils/src/fs.rs index 4aa13994b8..85982478a3 100644 --- a/components/utils/src/fs.rs +++ b/components/utils/src/fs.rs @@ -200,6 +200,8 @@ pub fn is_temp_file(path: &Path) -> bool { x if x.ends_with("jb_bak___") => true, // vim & jetbrains x if x.ends_with('~') => true, + // helix + x if x.ends_with("bck") => true, _ => { if let Some(filename) = path.file_stem() { // emacs diff --git a/src/fs_utils.rs b/src/fs_utils.rs index 693b4e535f..64f8f86412 100644 --- a/src/fs_utils.rs +++ b/src/fs_utils.rs @@ -226,6 +226,7 @@ mod tests { Path::new("hello.html~"), Path::new("#hello.html"), Path::new(".index.md.kate-swp"), + Path::new("smtp.md0HlVyu.bck"), ]; for t in test_cases {