user-selectable light and dark themes

cookies, template rendering with different CSS files via default or
request param or cookie, etc.
This commit is contained in:
2020-10-30 00:19:19 -05:00
parent 5ca483a904
commit 7cf11986c5
8 changed files with 173 additions and 35 deletions

View File

@@ -1,8 +1,13 @@
<!doctype html>
<title>{{ title }}{% if title %} - {% endif %}{{ config.TITLE_SUFFIX }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename=user_style) }}">
<link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}">
<section class="site-wrap">
<section class="styles">
<a href="?style=dark">[dark]</a>
<a href="?style=light">[light]</a>
</section>
<section class="nav">
{% for nav in navs %}
<a href="{{ nav.1 }}">{{ nav.0 }}</a>