forked from 00dani/lemoncurry
Add support for generating a simple Web App Manifest file, which helps mobile browsers display the site smartly
This commit is contained in:
parent
5987e54105
commit
55731c63ce
7 changed files with 63 additions and 1 deletions
11
lemoncurry/theme.py
Normal file
11
lemoncurry/theme.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from django.conf import settings
|
||||
from os.path import join
|
||||
from yaml import safe_load
|
||||
|
||||
path = join(
|
||||
settings.BASE_DIR,
|
||||
'lemoncurry', 'static',
|
||||
'base16-materialtheme-scheme', 'material-darker.yaml',
|
||||
)
|
||||
with open(path, 'r') as f:
|
||||
theme = safe_load(f)
|
Loading…
Add table
Add a link
Reference in a new issue