mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-10 10:36:40 -07:00
fix the recent blog posts section on the home page not going to the blog post
This commit is contained in:
parent
a26243ce7d
commit
04ebe92225
2 changed files with 17 additions and 7 deletions
|
@ -43,15 +43,15 @@ pub struct ResourceMetadata<T> {
|
|||
pub struct ResourceTemplateData<'r, M, E> {
|
||||
/// The resource's metadata.
|
||||
#[serde(flatten)]
|
||||
resource: &'r ResourceMetadata<M>,
|
||||
pub resource: &'r ResourceMetadata<M>,
|
||||
/// The resource's ID.
|
||||
id: String,
|
||||
pub id: String,
|
||||
/// Extra data to be passed to the template.
|
||||
#[serde(flatten)]
|
||||
extra: E,
|
||||
pub extra: E,
|
||||
/// The resource's timestamp. Duplicated to change serialization method.
|
||||
#[serde(serialize_with = "ResourceTemplateData::<M, E>::timestamp_formatter")]
|
||||
timestamp: OffsetDateTime,
|
||||
pub timestamp: OffsetDateTime,
|
||||
}
|
||||
|
||||
impl<'r, M, E> ResourceTemplateData<'r, M, E> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue