Skip to content

Commit

Permalink
Ignore feeds.xml in RSS generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanChidlow committed Jun 30, 2024
1 parent fc01c8f commit 993d993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ fn cli_rss() {
let path = entry.path();
let content = fs::read_to_string(&path).unwrap_or_default();

if path.file_name().unwrap() == "feed.xml" {
continue;
}

let item = ItemBuilder::default()
.title(Some(path.file_name().unwrap().to_string_lossy().to_string()))
.description(Some(content))
Expand Down

0 comments on commit 993d993

Please sign in to comment.