diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-19 09:02:16 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-19 09:02:16 +0100 |
commit | cadb3057d06a38abfac9067cbdc59ce3d926a658 (patch) | |
tree | ac70156a70f5cbd52a4b4d32df1442ab734c4c22 /server/src/routes/ui/layout.rs | |
parent | fbc1128f30438a4e18521073eb1bb79a77a7f20d (diff) | |
download | jellything-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.rs | 6 |
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 } |