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
|
@ -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
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