Browse Source

Fix 1.28 build for real

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
3c8505ffb4
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      components/front_matter/src/page.rs

+ 2
- 3
components/front_matter/src/page.rs View File

@@ -1,12 +1,11 @@
use std::collections::HashMap; use std::collections::HashMap;


use chrono::prelude::*; use chrono::prelude::*;
use serde::Deserialize;
use tera::{Map, Value}; use tera::{Map, Value};
use toml; use toml;


use errors::Result; use errors::Result;
use utils::de::fix_toml_dates;
use utils::de::{fix_toml_dates, from_toml_datetime};


/// The front matter of every page /// The front matter of every page
#[derive(Debug, Clone, PartialEq, Deserialize)] #[derive(Debug, Clone, PartialEq, Deserialize)]
@@ -17,7 +16,7 @@ pub struct PageFrontMatter {
/// Description in <meta> that appears when linked, e.g. on twitter /// Description in <meta> that appears when linked, e.g. on twitter
pub description: Option<String>, pub description: Option<String>,
/// Date if we want to order pages (ie blog post) /// 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>, pub date: Option<String>,
/// Chrono converted datetime /// Chrono converted datetime
#[serde(default, skip_deserializing)] #[serde(default, skip_deserializing)]


Loading…
Cancel
Save