From 07d9a7b452e91715a55a1fe5c7451aac455b1d56 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 13 Feb 2023 07:48:27 +0100 Subject: show commit hash --- src/layout.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/layout.rs b/src/layout.rs index 3906b6f..e0ce469 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -34,7 +34,7 @@ markup::define! { hr; footer { p { - "metamuffin's website; " + "metamuffin's website; version " @include_str!("../.git/refs/heads/main")[0..10] "; " "sources available on " a[href="https://codeberg.org/metamuffin/website"] { "codeberg" } } } @@ -52,9 +52,6 @@ pub struct LayoutPage { impl<'r, Main: Render> Responder<'r, 'static> for LayoutPage
{ fn respond_to(self, _req: &'r Request<'_>) -> response::Result<'static> { - // TODO blocking the event loop here. it seems like there is no other way to - // TODO offload this, since the guard references `req` which has a lifetime. - // TODO therefore we just block. that is fine since the database is somewhat fast. let mut out = String::new(); Layout { main: self.content, -- cgit v1.2.3-70-g09d2