Skip to content

Commit 0fde2fa

Browse files
Merge pull request #16 from PortableProgrammer/dev
Experimental web-app support
2 parents e7539d1 + 394c4ea commit 0fde2fa

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

1.76 KB
Loading
9.3 KB
Loading

src/mixins/head.pug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ mixin head(title)
88
meta(name="description" content="self-hostable, read-only reddit client")
99
title #{`${title} · lurker `}
1010
link(rel="mask-icon" href="/icons/reddit-silhouette.svg" color="#ff4500")
11+
link(rel="manifest" href="/manifest.json")
12+
link(rel="icon" sizes="512x512" href="/icons/reddit-silhouette-512x512.png")
1113
link(rel="icon" sizes="256x256" href="/icons/reddit-silhouette-256x256.png")
14+
link(rel="icon" sizes="192x192" href="/icons/reddit-silhouette-192x192.png")
1215
link(rel="icon" sizes="128x128" href="/icons/reddit-silhouette-128x128.png")
1316
link(rel="icon" sizes="64x64" href="/icons/reddit-silhouette-64x64.png")
1417
link(rel="icon" sizes="32x32" href="/icons/reddit-silhouette-32x32.png")

src/public/manifest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "lurker - readonly Reddit client",
3+
"short_name": "lurker",
4+
"icons": [
5+
{
6+
"src": "/icons/reddit-silhouette-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/icons/reddit-silhouette-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"display": "minimal-ui",
17+
"start_url": "./",
18+
"shortcuts": [
19+
{
20+
"name": "home",
21+
"description": "home feed",
22+
"url": "/home"
23+
},
24+
{
25+
"name": "all",
26+
"url": "/r/all"
27+
},
28+
{
29+
"name": "search",
30+
"url": "/search"
31+
},
32+
{
33+
"name": "subs",
34+
"url": "/subs"
35+
},
36+
{
37+
"name": "dashboard",
38+
"url": "/dashboard"
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)