diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest index ff8dda8..1c2ad7e 100644 --- a/public/manifest.webmanifest +++ b/public/manifest.webmanifest @@ -12,5 +12,14 @@ { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }, { "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } + ], + "shortcuts": [ + { + "name": "瞬间", + "short_name": "瞬间", + "description": "离线也能刷的瞬间时间线", + "url": "/moments/", + "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] + } ] } diff --git a/src/components/pages/MomentsPage.astro b/src/components/pages/MomentsPage.astro index a536e05..44fadd8 100644 --- a/src/components/pages/MomentsPage.astro +++ b/src/components/pages/MomentsPage.astro @@ -56,6 +56,14 @@ const iso = (d: Date) => d.toISOString(); ))} + + +