aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/layout.rs
diff options
context:
space:
mode:
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 }