summaryrefslogtreecommitdiff
path: root/src/layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/layout.rs b/src/layout.rs
index f1d0564..3906b6f 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -3,6 +3,8 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
+use crate::pages::*;
+use crate::uri;
use markup::Render;
use rocket::{
http::ContentType,
@@ -19,15 +21,22 @@ markup::define! {
title { @title " - " "metamuffin's website" }
}
body {
+ img[src="https://s.metamuffin.org/avatar/default-512.webp", align="left", height=80, hspace=10];
h1 { "metamuffin's personal website" }
nav {
-
+ a[href=uri!(r_about())] { "About" } " "
+ a[href=uri!(r_projects())] { "Projects" } " "
+ a[href=uri!(r_contact())] { "Contact" } " "
+ a[href="https://codeberg.org/metamuffin"] { "Codeberg" } " "
}
hr;
- @main
+ section { @main }
hr;
footer {
- p { "metamuffin's website; " a[href="https://"] {} }
+ p {
+ "metamuffin's website; "
+ "sources available on " a[href="https://codeberg.org/metamuffin/website"] { "codeberg" }
+ }
}
}
}