Compress the CSS

This commit is contained in:
Thomas Sileo 2018-07-03 23:54:16 +02:00
parent 5331874c77
commit 7eb52884b8
2 changed files with 2 additions and 4 deletions

View file

@ -83,7 +83,7 @@ with open(os.path.join(SASS_DIR, f"{THEME_STYLE.value}.scss")) as f:
theme_css += "\n"
with open(os.path.join(SASS_DIR, "base_theme.scss")) as f:
raw_css = theme_css + f.read()
CSS = sass.compile(string=raw_css)
CSS = sass.compile(string=raw_css, output_style='compressed')
USER_AGENT = (

View file

@ -15,9 +15,7 @@
<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 %}
<style>
{{ config.CSS | safe }}
</style>
<style>{{ config.CSS | safe }}</style>
</head>
<body>
{% if logged_in %}