chore(sw.js): add lightweight service worker
This commit is contained in:
parent
2b3a15bf9b
commit
2f52ee2253
6 changed files with 84 additions and 3 deletions
21
src/feeds/manifest.json.liquid
Normal file
21
src/feeds/manifest.json.liquid
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
permalink: "/manifest.json"
|
||||
layout: null
|
||||
eleventyExcludeFromCollections: true
|
||||
excludeFromSitemap: true
|
||||
---
|
||||
{
|
||||
"lang": "{{ globals.lang }}",
|
||||
"name": "{{ globals.site_name }}",
|
||||
"description": "{{ globals.site_description }}",
|
||||
"background_color": "#f9fafb",
|
||||
"theme_color": "#f9fafb"
|
||||
"display": "minimal-ui",
|
||||
"dir": "ltr",
|
||||
"icons": [
|
||||
{ "src": "{{ globals.url }}/og/w200/{% appVersion %}{{ globals.avatar }}", "type": "image/png", "sizes": "192x192" },
|
||||
{ "src": "{{ globals.url }}/og/w800/{% appVersion %}{{ globals.avatar }}", "type": "image/png", "sizes": "512x512" },
|
||||
{ "src": "{{ globals.url }}/og/w800/{% appVersion %}{{ globals.avatar }}", "type": "image/png", "sizes": "512x512", "purpose": "maskable" }
|
||||
],
|
||||
"start_url": "/",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue