Skip to content

Commit

Permalink
Fix comment. Remove debug println. Correct modification to serialized…
Browse files Browse the repository at this point in the history
… config.
  • Loading branch information
SumDonkuS committed Jul 2, 2024
1 parent 8d79d25 commit f3c2fdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/config/src/config/languages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl LanguageOptions {
}
merge_field!(self.title, other.title, "title");
merge_field!(self.description, other.description, "description");
println!("For {:?} self is {:?} vs other {:?}", self.title, self.feed_filenames, other.feed_filenames);
merge_field!(
self.feed_filenames.is_empty()
|| self.feed_filenames == LanguageOptions::default().feed_filenames,
Expand Down
2 changes: 2 additions & 0 deletions components/config/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ pub struct SerializedConfig<'a> {
description: &'a Option<String>,
languages: HashMap<&'a String, &'a languages::LanguageOptions>,
default_language: &'a str,
generate_feed: bool,
generate_feeds: bool,
feed_filenames: &'a [String],
taxonomies: &'a [taxonomies::TaxonomyConfig],
Expand Down Expand Up @@ -322,6 +323,7 @@ impl Config {
description: &options.description,
languages: self.languages.iter().filter(|(k, _)| k.as_str() != lang).collect(),
default_language: &self.default_language,
generate_feed: options.generate_feeds,
generate_feeds: options.generate_feeds,
feed_filenames: &options.feed_filenames,
taxonomies: &options.taxonomies,
Expand Down
4 changes: 2 additions & 2 deletions components/site/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,8 @@ impl Site {
Ok(())
}

/// Renders a feed for the given path and at the given path
/// If both arguments are `None`, it will render only the feed for the whole
/// Renders a feeds for the given path and at the given path
/// If both arguments are `None`, it will render only the feeds for the whole
/// site at the root folder.
pub fn render_feeds(
&self,
Expand Down

0 comments on commit f3c2fdd

Please sign in to comment.