diff --git a/src/models/post.rs b/src/models/post.rs index 2b27b12..cdfdba2 100644 --- a/src/models/post.rs +++ b/src/models/post.rs @@ -40,6 +40,12 @@ pub struct Post { pub created_at: DateTime, pub updated_at: DateTime, pub tags: Vec, + pub cover_image: Option, + pub reading_time: u32, + pub word_count: u32, + pub toc_html: Option, + pub prev_post: Option, + pub next_post: Option, } impl Post { @@ -50,6 +56,12 @@ impl Post { } } +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +pub struct PostNav { + pub title: String, + pub slug: String, +} + #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Tag { pub id: i32,