From b87f17570f795660b319748d8b24b0bec56aa924 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 28 May 2020 09:21:42 +0200 Subject: [PATCH] Remove unneeded build_timestamp on config --- CHANGELOG.md | 3 ++- Cargo.lock | 2 +- Cargo.toml | 2 +- components/config/src/config.rs | 7 ------- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acf52885..eb79cdf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.12.0 (unreleased) + ## 0.11.0 (2020-05-25) ### Breaking @@ -23,7 +25,6 @@ - Pass missing `lang` template parameter to taxonomy list template - Fix default index section not having its path set to '/' - Change cachebust strategy to use SHA256 instead of timestamp -- Fix ## 0.10.1 (2020-03-12) diff --git a/Cargo.lock b/Cargo.lock index d8b1276b..ce44aff7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2944,7 +2944,7 @@ dependencies = [ [[package]] name = "zola" -version = "0.11.1" +version = "0.12.0" dependencies = [ "atty", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 674b6d67..d37a54e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zola" -version = "0.11.1" +version = "0.12.0" authors = ["Vincent Prouillet "] edition = "2018" license = "MIT" diff --git a/components/config/src/config.rs b/components/config/src/config.rs index 393db8de..4ce479f4 100644 --- a/components/config/src/config.rs +++ b/components/config/src/config.rs @@ -1,7 +1,6 @@ use std::collections::HashMap; use std::path::{Path, PathBuf}; -use chrono::Utc; use globset::{Glob, GlobSet, GlobSetBuilder}; use serde_derive::{Deserialize, Serialize}; use syntect::parsing::{SyntaxSet, SyntaxSetBuilder}; @@ -196,9 +195,6 @@ pub struct Config { /// All user params set in [extra] in the config pub extra: HashMap, - - /// Set automatically when instantiating the config. Used for cachebusting - pub build_timestamp: Option, } impl Config { @@ -222,8 +218,6 @@ impl Config { bail!("Default language `{}` should not appear both in `config.default_language` and `config.languages`", config.default_language) } - config.build_timestamp = Some(Utc::now().timestamp()); - if !config.ignored_content.is_empty() { // Convert the file glob strings into a compiled glob set matcher. We want to do this once, // at program initialization, rather than for every page, for example. We arrange for the @@ -404,7 +398,6 @@ impl Default for Config { link_checker: LinkChecker::default(), slugify: Slugify::default(), extra: HashMap::new(), - build_timestamp: Some(1), } } }