add dates to posts
This commit is contained in:
parent
da4ebd294c
commit
fcaf5d8ad9
3 changed files with 17 additions and 8 deletions
|
@ -29,6 +29,8 @@ struct Page {
|
|||
tree_path: String,
|
||||
doc: String,
|
||||
feed: Option<Feed>,
|
||||
updated: Option<DateTime<Utc>>,
|
||||
tags: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
@ -129,6 +131,8 @@ impl DocDir {
|
|||
.ok()?,
|
||||
})
|
||||
}),
|
||||
updated: doc.attributes.updated,
|
||||
tags: doc.attributes.tags.clone(),
|
||||
},
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue