From dd57e08795efe27b314bcaf1407faca3b205142a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 12 Feb 2023 21:24:04 +0100 Subject: copy some content from the old page --- src/layout.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/layout.rs') 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 */ +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" } + } } } } -- cgit v1.2.3-70-g09d2