Standardize the construction of intermediate BlogPostPage.

This commit is contained in:
Tom Alexander
2023-12-19 17:09:11 -05:00
parent 261fe8a1a2
commit 4bb1f9983a
27 changed files with 405 additions and 248 deletions

View File

@@ -7,8 +7,14 @@ pub(crate) struct IEntity {
pub(crate) html: String,
}
intermediate!(IEntity, Entity, original, _registry, {
Ok(IEntity {
html: original.html.to_owned(),
})
});
intermediate!(
IEntity,
&'orig organic::types::Entity<'parse>,
original,
_registry,
{
Ok(IEntity {
html: original.html.to_owned(),
})
}
);