Skip to content

Commit 7ba45d6

Browse files
committed
Add date field to front matter spec
1 parent 7934c13 commit 7ba45d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

front_matter/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
use eyre::bail;
22
use serde::{Deserialize, Serialize};
3+
use toml::value::Date;
34

45
/// The front matter of a markdown blog post.
56
#[derive(Debug, PartialEq, Serialize, Deserialize)]
67
pub struct FrontMatter {
78
pub layout: String,
9+
pub date: Date,
810
pub title: String,
911
pub author: String,
1012
pub description: Option<String>,

0 commit comments

Comments
 (0)