Add about page
This commit is contained in:
@@ -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}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user