Update changelog + add back config.generate_feed in templates for now

This commit is contained in:
Vincent Prouillet 2024-06-24 22:20:20 +02:00 committed by Vincent Prouillet
parent 9774d761e3
commit b97f8a1fe2
7 changed files with 9 additions and 6 deletions

View file

@ -1,8 +1,9 @@
# Changelog # Changelog
## 0.19.1 (unreleased) ## 0.19.1 (2024-06-24)
- Fix `config.generate_feeds` being still serialized as `config.generate_feed` - Fix `config.generate_feeds` being still serialized as `config.generate_feed`. Both are available for now
- Fix `zola serve` not reacting to changes on some OSes
## 0.19.0 (2024-06-20) ## 0.19.0 (2024-06-20)

2
Cargo.lock generated
View file

@ -5248,7 +5248,7 @@ dependencies = [
[[package]] [[package]]
name = "zola" name = "zola"
version = "0.19.0" version = "0.19.1"
dependencies = [ dependencies = [
"clap 4.5.7", "clap 4.5.7",
"clap_complete", "clap_complete",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "zola" name = "zola"
version = "0.19.0" version = "0.19.1"
authors = ["Vincent Prouillet <hello@vincentprouillet.com>"] authors = ["Vincent Prouillet <hello@vincentprouillet.com>"]
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"

View file

@ -108,6 +108,7 @@ pub struct SerializedConfig<'a> {
description: &'a Option<String>, description: &'a Option<String>,
languages: HashMap<&'a String, &'a languages::LanguageOptions>, languages: HashMap<&'a String, &'a languages::LanguageOptions>,
default_language: &'a str, default_language: &'a str,
generate_feed: bool,
generate_feeds: bool, generate_feeds: bool,
feed_filenames: &'a [String], feed_filenames: &'a [String],
taxonomies: &'a [taxonomies::TaxonomyConfig], taxonomies: &'a [taxonomies::TaxonomyConfig],
@ -322,6 +323,7 @@ impl Config {
description: &options.description, description: &options.description,
languages: self.languages.iter().filter(|(k, _)| k.as_str() != lang).collect(), languages: self.languages.iter().filter(|(k, _)| k.as_str() != lang).collect(),
default_language: &self.default_language, default_language: &self.default_language,
generate_feed: options.generate_feeds,
generate_feeds: options.generate_feeds, generate_feeds: options.generate_feeds,
feed_filenames: &options.feed_filenames, feed_filenames: &options.feed_filenames,
taxonomies: &options.taxonomies, taxonomies: &options.taxonomies,

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View file

@ -1,5 +1,5 @@
name: zola name: zola
version: 0.19.0 version: 0.19.1
summary: A fast static site generator in a single binary with everything built-in. summary: A fast static site generator in a single binary with everything built-in.
description: | description: |
A fast static site generator in a single binary with everything built-in. A fast static site generator in a single binary with everything built-in.
@ -21,7 +21,7 @@ parts:
zola: zola:
source-type: git source-type: git
source: https://github.com/getzola/zola.git source: https://github.com/getzola/zola.git
source-tag: v0.19.0 source-tag: v0.19.1
plugin: rust plugin: rust
rust-channel: stable rust-channel: stable
build-packages: build-packages: