Add support for generating a simple Web App Manifest file, which helps mobile browsers display the site smartly

This commit is contained in:
Danielle McLean 2017-10-28 14:29:07 +11:00
parent 5987e54105
commit 55731c63ce
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 63 additions and 1 deletions

11
lemoncurry/theme.py Normal file
View 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)