mirror of
https://github.com/getzola/zola
synced 2024-11-13 23:57:06 +00:00
Fix 1.28 build for real
This commit is contained in:
parent
d3bd22cfc4
commit
3c8505ffb4
1 changed files with 2 additions and 3 deletions
|
@ -1,12 +1,11 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use chrono::prelude::*;
|
||||
use serde::Deserialize;
|
||||
use tera::{Map, Value};
|
||||
use toml;
|
||||
|
||||
use errors::Result;
|
||||
use utils::de::fix_toml_dates;
|
||||
use utils::de::{fix_toml_dates, from_toml_datetime};
|
||||
|
||||
/// The front matter of every page
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
|
@ -17,7 +16,7 @@ pub struct PageFrontMatter {
|
|||
/// Description in <meta> that appears when linked, e.g. on twitter
|
||||
pub description: Option<String>,
|
||||
/// Date if we want to order pages (ie blog post)
|
||||
#[serde(default, deserialize_with = "utils::de::from_toml_datetime")]
|
||||
#[serde(default, deserialize_with = "from_toml_datetime")]
|
||||
pub date: Option<String>,
|
||||
/// Chrono converted datetime
|
||||
#[serde(default, skip_deserializing)]
|
||||
|
|
Loading…
Reference in a new issue