mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 15:24:32 +00:00
- Add generate_pwa(): builds manifest.json (name, short_name, theme_color, standalone display, favicon icon) and service-worker.js with a cache-first strategy; cache name is versioned by a hash of the precache file list so new builds automatically invalidate old caches; precache list covers index.html, config.yml, nav.yml, search.json, theme file, and all pages/posts/assets - Call generate_pwa() from run_build() when pwa: yes/true in config.yml - index.html: add <link rel="manifest"> and SW registration script in <head>; both silently no-op when the generated files are absent - index.html boot(): write offline-message from config to localStorage on every load so the message survives cache eviction - index.html navigateTo(): show localStorage offline message when a page fetch fails instead of the generic not-found message - Update CLAUDE.md with PWA config key reference https://claude.ai/code/session_015XtsgTMi8UtmgxEgb5Qt2c |
||
|---|---|---|
| .. | ||
| assets | ||
| pages | ||
| posts | ||
| config.yml | ||
| index.html | ||
| nav.yml | ||
| search.json | ||
| theme.yml | ||