chore(sw.js): add lightweight service worker

This commit is contained in:
Cory Dransfeldt 2025-05-12 15:48:49 -07:00
parent 2b3a15bf9b
commit 2f52ee2253
No known key found for this signature in database
6 changed files with 84 additions and 3 deletions

View 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": "/",
}