From 7c14130b61d806b42e7c0d1c8cf846b964caadff Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 1 Jan 2026 21:34:04 +0100 Subject: about page --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 7253a16..0f14e3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,6 +159,14 @@ async fn contact(locale: Locale) -> templates::Contact { } } +#[handler] +async fn about(locale: Locale) -> templates::About { + templates::About { + title: locale.text("title-about").unwrap(), + locale, + } +} + #[handler] async fn plants() -> Result<()> { Err(BlossomError::Unimplemented) @@ -229,6 +237,7 @@ async fn main() -> std::result::Result<(), std::io::Error> { .at("/poetry/:poem", get(get_poem)) .at("/feed", get(feed)) .at("/contact", get(contact)) + .at("/about", get(about)) .at("/plants", get(plants)) .nest("/static/", EmbeddedFilesEndpoint::::new()) .catch_all_error(custom_error) -- cgit