From 694511121cd5201de937719e122400e88fe216e3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 21 May 2018 21:10:21 +0200 Subject: [PATCH] Add theme color config item --- config.py | 1 + templates/layout.html | 1 + 2 files changed, 2 insertions(+) diff --git a/config.py b/config.py index 250916c..12f0ae9 100644 --- a/config.py +++ b/config.py @@ -44,6 +44,7 @@ with open('config/me.yml') as f: ICON_URL = conf['icon_url'] PASS = conf['pass'] PUBLIC_INSTANCES = conf.get('public_instances') + THEME_COLOR = conf.get('theme_color') USER_AGENT = ( f'{requests.utils.default_user_agent()} ' diff --git a/templates/layout.html b/templates/layout.html index 648c06b..f1cc5b0 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -15,6 +15,7 @@ +{% if config.THEME_COLOR %}{% endif %}