Load more button on Posts page
Some checks failed
Rust / Test (push) Has been cancelled
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled

This commit is contained in:
Alphonse Paix
2025-09-23 18:24:12 +02:00
parent 5c5e3b0e4c
commit b1e315921e
7 changed files with 96 additions and 37 deletions

View File

@@ -1,5 +1,3 @@
use crate::templates::PostCardTemplate;
use askama::Template;
use chrono::{DateTime, Utc};
use uuid::Uuid;
@@ -27,8 +25,4 @@ impl PostEntry {
Err(e) => anyhow::bail!(e),
}
}
pub fn render(&self) -> String {
PostCardTemplate { post: self }.render().unwrap()
}
}