summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/head.pug7
-rw-r--r--views/header.pug5
2 files changed, 10 insertions, 2 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)
diff --git a/views/header.pug b/views/header.pug
index 454c35a..d386969 100644
--- a/views/header.pug
+++ b/views/header.pug
@@ -1,6 +1,9 @@
header
a(href="/")
- img(src="/images/rally-the-troops.svg" width=48 height=48)
+ if SITE_ICON
+ img(src="/images/"+SITE_ICON width=48 height=48)
+ else
+ img(src="/images/rally-the-troops.svg" width=48 height=48)
nav
a(href="/about") About
if user