Skip to content

Commit f3c2fdd

Browse files
committed
Fix comment. Remove debug println. Correct modification to serialized config.
1 parent 8d79d25 commit f3c2fdd

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: components/config/src/config/languages.rs

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ impl LanguageOptions {
6565
}
6666
merge_field!(self.title, other.title, "title");
6767
merge_field!(self.description, other.description, "description");
68-
println!("For {:?} self is {:?} vs other {:?}", self.title, self.feed_filenames, other.feed_filenames);
6968
merge_field!(
7069
self.feed_filenames.is_empty()
7170
|| self.feed_filenames == LanguageOptions::default().feed_filenames,

Diff for: components/config/src/config/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ pub struct SerializedConfig<'a> {
108108
description: &'a Option<String>,
109109
languages: HashMap<&'a String, &'a languages::LanguageOptions>,
110110
default_language: &'a str,
111+
generate_feed: bool,
111112
generate_feeds: bool,
112113
feed_filenames: &'a [String],
113114
taxonomies: &'a [taxonomies::TaxonomyConfig],
@@ -322,6 +323,7 @@ impl Config {
322323
description: &options.description,
323324
languages: self.languages.iter().filter(|(k, _)| k.as_str() != lang).collect(),
324325
default_language: &self.default_language,
326+
generate_feed: options.generate_feeds,
325327
generate_feeds: options.generate_feeds,
326328
feed_filenames: &options.feed_filenames,
327329
taxonomies: &options.taxonomies,

Diff for: components/site/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1047,8 +1047,8 @@ impl Site {
10471047
Ok(())
10481048
}
10491049

1050-
/// Renders a feed for the given path and at the given path
1051-
/// If both arguments are `None`, it will render only the feed for the whole
1050+
/// Renders a feeds for the given path and at the given path
1051+
/// If both arguments are `None`, it will render only the feeds for the whole
10521052
/// site at the root folder.
10531053
pub fn render_feeds(
10541054
&self,

0 commit comments

Comments
 (0)