Add about page

This commit is contained in:
2024-11-03 03:00:40 +01:00
parent 1bb774eb00
commit 32f9356a1a
8 changed files with 142 additions and 0 deletions

View File

@@ -12,3 +12,9 @@ pub async fn index(v: impl ViewRenderer, ctx: &AppContext) -> Result<impl IntoRe
data!({ "skills": skills, "jobs": jobs }),
)
}
pub async fn about(v: impl ViewRenderer) -> Result<impl IntoResponse> {
let age = services::website::get_current_age();
format::render().view(&v, "website/about.html", data!({"age": age}))
}