add basic web app manifest, maybe this is enough to 'install' as standalone?

This commit is contained in:
xenofem 2024-01-25 12:57:05 -05:00
parent cf23ca6bbe
commit d852896c61
4 changed files with 21 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

View file

@ -0,0 +1,20 @@
{
"name": "DLibrary",
"start_url": "../index.html",
"display": "standalone",
"orientation": "any",
"theme_color": "#111",
"background_color": "#111",
"icons": [
{
"src": "icons/app/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/app/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}

View file

@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark"> <meta name="color-scheme" content="dark">
<title>{% block title %}{% if title %}{{ title }} - {% else %}{% endif %}DLibrary{% endblock %}</title> <title>{% block title %}{% if title %}{{ title }} - {% else %}{% endif %}DLibrary{% endblock %}</title>
<link rel="manifest" href="{{ root() }}/static/manifest.json">
<link rel="stylesheet" type="text/css" href="{{ root() }}/static/dlibrary.css"> <link rel="stylesheet" type="text/css" href="{{ root() }}/static/dlibrary.css">
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>