From 18ca25b18a7a78c2b0b7f78bb25cead53c5aeca2 Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 9 Jan 2021 11:48:49 +0100 Subject: [PATCH] only include dark.css if dark theme is choosen --- views/includes/head.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/includes/head.pug b/views/includes/head.pug index 8cd1be7..588875f 100644 --- a/views/includes/head.pug +++ b/views/includes/head.pug @@ -1,5 +1,6 @@ +if(user_preferences.theme === 'dark') + link(rel="stylesheet", type="text/css", href="/css/dark.css") link(rel="stylesheet", type="text/css", href="/css/styles.css") -link(rel="stylesheet", type="text/css", href="/css/dark.css") link(rel="icon", type="image/png", sizes="32x32", href="/favicon.png") meta(name="viewport", content="width=device-width, initial-scale=1.0") -