aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/layout.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-19 09:02:16 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-19 09:02:16 +0100
commitcadb3057d06a38abfac9067cbdc59ce3d926a658 (patch)
treeac70156a70f5cbd52a4b4d32df1442ab734c4c22 /server/src/routes/ui/layout.rs
parentfbc1128f30438a4e18521073eb1bb79a77a7f20d (diff)
downloadjellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar
jellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar.bz2
jellything-cadb3057d06a38abfac9067cbdc59ce3d926a658.tar.zst
item page styled
Diffstat (limited to 'server/src/routes/ui/layout.rs')
-rw-r--r--server/src/routes/ui/layout.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/routes/ui/layout.rs b/server/src/routes/ui/layout.rs
index f333fa1..51905db 100644
--- a/server/src/routes/ui/layout.rs
+++ b/server/src/routes/ui/layout.rs
@@ -1,16 +1,18 @@
use markup::Render;
+use crate::CONF;
+
markup::define! {
Layout<Main: Render>(title: String, main: Main) {
@markup::doctype()
html {
head {
- title { @title " - Jellything" }
+ title { @title " - " @CONF.brand }
link[rel="stylesheet", href="/assets/style.css"];
}
body {
nav {
- h1 { a[href="/"] { "Jellything" } }
+ h1 { a[href="/"] { @CONF.brand } }
a[href="/library"] { "My Library" }
}
#main { @main }