diff options
Diffstat (limited to 'templates/src/templates.rs')
-rw-r--r-- | templates/src/templates.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/src/templates.rs b/templates/src/templates.rs index 5772b4d..785a4b8 100644 --- a/templates/src/templates.rs +++ b/templates/src/templates.rs @@ -1,16 +1,16 @@ #![allow(clippy::needless_lifetimes)] -use crate::{Feed, VCard}; +use crate::{themes::ThemeName, Feed, VCard}; use http::StatusCode; use kittybox_util::micropub::Channel; markup::define! { - Template<'a>(title: &'a str, blog_name: &'a str, feeds: Vec<Channel>, user: Option<&'a kittybox_indieauth::ProfileUrl>, content: String) { + Template<'a>(title: &'a str, blog_name: &'a str, feeds: Vec<Channel>, theme: ThemeName, user: Option<&'a kittybox_indieauth::ProfileUrl>, content: String) { @markup::doctype() html { head { title { @title } link[rel="preconnect", href="https://fonts.gstatic.com"]; - link[rel="stylesheet", href="/.kittybox/static/style.css"]; + link[rel="stylesheet", href=theme.into_css_link()]; meta[name="viewport", content="initial-scale=1, width=device-width"]; link[rel="micropub", href="/.kittybox/micropub"]; |