Add theme color config item

This commit is contained in:
Thomas Sileo 2018-05-21 21:10:21 +02:00
parent abc168257e
commit 694511121c
2 changed files with 2 additions and 0 deletions

View file

@ -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()} '

View file

@ -15,6 +15,7 @@
<link rel="alternate" href="{{ config.ID }}/feed.json" type="application/json" title="JSON Feed">
<link rel="alternate" href="{{ config.ID }}/feed.rss" type="application/rss+xml" title="RSS">
<link rel="alternate" href="{{ config.ID }}/feed.atom" type="application/atom+xml" title="Atom 0.3">
{% if config.THEME_COLOR %}<meta name="theme-color" content="{{ config.THEME_COLOR }}">{% endif %}
</head>
<body>
<div class="base-container">