add dates to posts

This commit is contained in:
りき萌 2025-08-26 20:19:25 +02:00
parent da4ebd294c
commit fcaf5d8ad9
3 changed files with 17 additions and 8 deletions

View file

@ -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(),
},
},
)