site_footer and post listing order
This commit is contained in:
@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user