mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Add theme color config item
This commit is contained in:
parent
abc168257e
commit
694511121c
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ with open('config/me.yml') as f:
|
||||||
ICON_URL = conf['icon_url']
|
ICON_URL = conf['icon_url']
|
||||||
PASS = conf['pass']
|
PASS = conf['pass']
|
||||||
PUBLIC_INSTANCES = conf.get('public_instances')
|
PUBLIC_INSTANCES = conf.get('public_instances')
|
||||||
|
THEME_COLOR = conf.get('theme_color')
|
||||||
|
|
||||||
USER_AGENT = (
|
USER_AGENT = (
|
||||||
f'{requests.utils.default_user_agent()} '
|
f'{requests.utils.default_user_agent()} '
|
||||||
|
|
|
@ -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.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.rss" type="application/rss+xml" title="RSS">
|
||||||
<link rel="alternate" href="{{ config.ID }}/feed.atom" type="application/atom+xml" title="Atom 0.3">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="base-container">
|
<div class="base-container">
|
||||||
|
|
Loading…
Reference in a new issue