From 7bea502bdf1c1c75286093ae0fd465b63f6300a8 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 30 Jan 2025 13:00:28 +1100 Subject: [PATCH] feat: Add now page for Jan --- pwa/sw.js | 33 -------- templates/now/25_01_30.html | 161 ++++++++++++++++++++++++++++++++++++ templates/sitemap.xml | 3 + 3 files changed, 164 insertions(+), 33 deletions(-) create mode 100644 templates/now/25_01_30.html diff --git a/pwa/sw.js b/pwa/sw.js index 50081b3..4e3ad67 100644 --- a/pwa/sw.js +++ b/pwa/sw.js @@ -35,36 +35,3 @@ self.addEventListener('install', async (event) => { .then((cache) => cache.addAll(PRECACHE_ASSETS)) ); }); - -if (workbox.navigationPreload.isSupported()) { - workbox.navigationPreload.enable(); -} - -workbox.routing.registerRoute( - new RegExp('/*'), - new workbox.strategies.StaleWhileRevalidate({ - cacheName: CACHE - }) -); - -self.addEventListener('fetch', (event) => { - if (event.request.mode === 'navigate') { - event.respondWith((async () => { - try { - const preloadResp = await event.preloadResponse; - - if (preloadResp) { - return preloadResp; - } - - const networkResp = await fetch(event.request); - return networkResp; - } catch (error) { - - const cache = await caches.open(CACHE); - const cachedResp = await cache.match('/404'); - return cachedResp; - } - })()); - } -}); \ No newline at end of file diff --git a/templates/now/25_01_30.html b/templates/now/25_01_30.html new file mode 100644 index 0000000..a441d01 --- /dev/null +++ b/templates/now/25_01_30.html @@ -0,0 +1,161 @@ + + + + + + + What's up at the moment | Nathan.Woodburn/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{handshake_scripts | safe}} +
+
+

Nathan.Woodburn/

+

WHat's Happening Now

+
{{DATE}}
+
+
+

Camping with the Family

+

I've spent most of January travelling and camping so haven't been as active online.

+
+
+
+
+

FireWallet Update

+

I've done a lot of updates this week on FireWallet.
This includes updating and creating new plugins, fixing various bugs and small issues and cleaning up the code

+
+
+
+
+
+
+ + +
+
+ + +
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/templates/sitemap.xml b/templates/sitemap.xml index a277de4..a140cc9 100644 --- a/templates/sitemap.xml +++ b/templates/sitemap.xml @@ -51,6 +51,9 @@ https://nathan.woodburn.au/now/25_01_01 + + https://nathan.woodburn.au/now/25_01_30 + https://nathan.woodburn.au/now/old