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: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 63 additions and 1 deletions

View file

@ -9,6 +9,7 @@
<link rel="hub" href="{% get_push_hub %}" />
<link rel="self" href="{{ uri }}" />
<link rel="manifest" href="{% url 'wellknowns:manifest' %}" />
<meta property="og:url" content="{{ uri }}" />
<meta property="og:title" content="{% firstof title site_name %}" />

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)