mirror of
https://github.com/getzola/zola
synced 2024-12-12 05:12:29 +00:00
Ignore Helix temp files
This commit is contained in:
parent
f8ded09a28
commit
96f266e3f8
3 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue