Generic servable
Some checks failed
CI / Check typos (push) Successful in 8s
CI / Check links (push) Failing after 11s
CI / Clippy (push) Successful in 53s
CI / Build and test (push) Successful in 1m10s
CI / Build container (push) Successful in 54s
CI / Deploy on waypoint (push) Successful in 43s

This commit is contained in:
2025-11-07 10:31:48 -08:00
parent a3ff195de9
commit 6cb54c2300
10 changed files with 263 additions and 161 deletions

View File

@@ -1,6 +1,6 @@
use assetserver::Asset;
use maud::html;
use page::{Page, PageMetadata};
use page::page::{Page, PageMetadata};
use crate::{
components::{
@@ -9,6 +9,7 @@ use crate::{
md::Markdown,
misc::FarLink,
},
pages::page_wrapper,
routes::assets::{Image_Cover, Image_Icon},
};
@@ -22,9 +23,9 @@ pub fn index() -> Page {
backlinks: Some(false),
},
generate_html: Box::new(move |_page, _| {
generate_html: Box::new(move |page, _ctx| {
Box::pin(async {
html! {
let inner = html! {
h2 id="about" { "About" }
div {
@@ -70,9 +71,12 @@ pub fn index() -> Page {
}
(Markdown(include_str!("index.md")))
}
};
page_wrapper(&page.meta, inner).await
})
}),
..Default::default()
}
}