Skip to content

Commit 63c2421

Browse files
committed
Add initial web app manifest
1 parent 7f0ff4a commit 63c2421

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

template/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>{{ name }}</title>
8+
<!-- Add to home screen for Android and modern mobile browsers -->
9+
<link rel="manifest" href="/static/manifest.json">
10+
<!-- Add to home screen for Safari on iOS -->
11+
<meta name="apple-mobile-web-app-capable" content="yes">
12+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
13+
<meta name="apple-mobile-web-app-title" content="{{ name }}">
14+
<link rel="apple-touch-icon" href="/static/img/icons/icon-152x152.png">
15+
<!-- Add to home screen for Windows -->
16+
<meta name="msapplication-TileImage" content="/static/img/icons/icon-144x144.png">
17+
<meta name="msapplication-TileColor" content="#000000">
818
</head>
919
<body>
1020
<div id="app"></div>

template/static/manifest.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "My app",
3+
"short_name": "My app",
4+
"icons": [{
5+
"src": "img/icons/icon-128x128.png",
6+
"sizes": "128x128",
7+
"type": "image/png"
8+
}, {
9+
"src": "img/icons/icon-144x144.png",
10+
"sizes": "144x144",
11+
"type": "image/png"
12+
}, {
13+
"src": "img/icons/icon-152x152.png",
14+
"sizes": "152x152",
15+
"type": "image/png"
16+
}, {
17+
"src": "img/icons/icon-192x192.png",
18+
"sizes": "192x192",
19+
"type": "image/png"
20+
}, {
21+
"src": "img/icons/icon-256x256.png",
22+
"sizes": "256x256",
23+
"type": "image/png"
24+
}],
25+
"start_url": "/index.html",
26+
"display": "standalone",
27+
"background_color": "#000000",
28+
"theme_color": "#000000"
29+
}

0 commit comments

Comments
 (0)