mirror of
https://github.com/getzola/zola
synced 2024-09-20 06:11:54 +00:00
parent
96f266e3f8
commit
1cc3ad333a
2 changed files with 9 additions and 1 deletions
|
@ -1046,7 +1046,9 @@ impl Site {
|
|||
None => return Ok(()),
|
||||
};
|
||||
|
||||
for (feed, feed_filename) in feeds.into_iter().zip(self.config.languages[lang].feed_filenames.iter()) {
|
||||
for (feed, feed_filename) in
|
||||
feeds.into_iter().zip(self.config.languages[lang].feed_filenames.iter())
|
||||
{
|
||||
if let Some(base) = base_path {
|
||||
let mut components = Vec::new();
|
||||
for component in base.components() {
|
||||
|
|
|
@ -82,6 +82,12 @@ pub fn filter_events(
|
|||
}
|
||||
let path = event.event.paths[0].clone();
|
||||
|
||||
// Since we debounce things, some files might already not exist anymore by the
|
||||
// time we get to them
|
||||
if !path.exists() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if is_ignored_file(ignored_content_globset, &path) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue