summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-02-13 07:48:27 +0100
committermetamuffin <metamuffin@disroot.org>2023-02-13 07:48:27 +0100
commit07d9a7b452e91715a55a1fe5c7451aac455b1d56 (patch)
tree15c6f4fc9a49c94cd175e32092b22a0a3d160212
parentb6d41d1059c54452bd5b5a9da17eaf56853ec3b4 (diff)
downloadmetamuffin-website-07d9a7b452e91715a55a1fe5c7451aac455b1d56.tar
metamuffin-website-07d9a7b452e91715a55a1fe5c7451aac455b1d56.tar.bz2
metamuffin-website-07d9a7b452e91715a55a1fe5c7451aac455b1d56.tar.zst
show commit hash
-rw-r--r--src/layout.rs5
1 files changed, 1 insertions, 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<T> {
impl<'r, Main: Render> Responder<'r, 'static> for LayoutPage<Main> {
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,