site_footer and post listing order

This commit is contained in:
2024-01-18 22:33:36 +01:00
parent e0ad3f29ae
commit c9704a20f6
9 changed files with 108 additions and 38 deletions

View File

@ -1,9 +1,14 @@
use askama::Template;
use crate::components::site_footer::{render_site_footer, SiteFooter};
#[derive(Template)]
#[template(path = "index.html")]
pub struct IndexTemplate {}
pub struct IndexTemplate {
site_footer: SiteFooter,
}
pub async fn render_index() -> IndexTemplate {
IndexTemplate {}
let site_footer = render_site_footer().await;
IndexTemplate { site_footer }
}