mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Restored custom CSS file functionality, fix GH-135
This commit is contained in:
parent
0c948561a8
commit
6171d1d2e1
@ -1,5 +1,6 @@
|
||||
from . import filters
|
||||
from ..pkg_global.conf import malojaconfig
|
||||
from ..pkg_global import conf
|
||||
|
||||
from .. import database, malojatime, images, malojauri, thirdparty, __pkginfo__
|
||||
from ..database import jinjaview
|
||||
@ -32,6 +33,7 @@ def update_jinja_environment():
|
||||
"mlj_uri": malojauri,
|
||||
"settings": malojaconfig,
|
||||
"thirdparty": thirdparty,
|
||||
"conf":conf,
|
||||
"pkginfo": __pkginfo__,
|
||||
# external
|
||||
"urllib": urllib,
|
||||
|
@ -326,6 +326,9 @@ config(
|
||||
|
||||
|
||||
|
||||
custom_css_files = [f for f in os.listdir(data_dir['css']()) if f.lower().endswith('.css')]
|
||||
|
||||
|
||||
|
||||
# what the fuck did i just write
|
||||
# this spaghetti file is proudly sponsored by the rice crackers i'm eating at the
|
||||
|
@ -14,6 +14,9 @@
|
||||
|
||||
<link rel="stylesheet" href="/maloja.css" />
|
||||
<link rel="stylesheet" href="/static/css/themes/{{ settings.theme }}.css" />
|
||||
{% for cssf in conf.custom_css_files %}
|
||||
<link rel="stylesheet" href="/static_custom/css/{{ cssf }}" />
|
||||
{% endfor %}
|
||||
|
||||
<script src="/search.js"></script>
|
||||
<script src="/neopolitan.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user