summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-17 20:13:02 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-21 19:41:47 +0200
commit77b20af11c6492616ece6cc7100b9d1f10722c3b (patch)
treee112a8e892f7df60240d145bdc93396cfb686793 /views/head.pug
parente036cc9eee1a28d9bef6d2615c22d1d9d1b86829 (diff)
downloadserver-77b20af11c6492616ece6cc7100b9d1f10722c3b.tar.gz
Add color themes.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/head.pug b/views/head.pug
index b10c3ce..8b3f25b 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -4,6 +4,8 @@ meta(name="viewport" content="width=device-width,initial-scale=1")
link(rel="icon" type="image/svg+xml" href="/favicon.svg")
link(rel="stylesheet" href="/fonts/fonts.css")
link(rel="stylesheet" href="/style.css")
+if SITE_THEME
+ link(rel="stylesheet" href="/themes/"+SITE_THEME)
mixin social(title,description,game)
meta(property="og:title" content=title)
@@ -11,7 +13,10 @@ mixin social(title,description,game)
if game
meta(property="og:image" content=SITE_URL+"/"+game+"/cover.2x.jpg")
else
- meta(property="og:image" content=SITE_URL+"/images/rally-the-troops.png")
+ if SITE_ICON
+ meta(property="og:image" content=SITE_URL+"/images/"+SITE_ICON)
+ else
+ meta(property="og:image" content=SITE_URL+"/images/rally-the-troops.png")
meta(property="og:description" content=description)
mixin gamecover(title_id)