From 05e5786a8037f851620503f2eb0042684af5d1fc Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 19 Oct 2024 21:53:25 -0400 Subject: [PATCH] Allow text/html cache display on offline page --- content/offline.md | 2 +- themes/pulp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/offline.md b/content/offline.md index ac70121..45eda15 100644 --- a/content/offline.md +++ b/content/offline.md @@ -46,7 +46,7 @@ async function listPages() { if (url.includes('/blog')) { console.log(url) const post = await cache.match(request); - if (post.headers.get('content-type') === 'text/html') { + if (post.headers.get('content-type').includes('text/html')) { const body = await post.text(); console.log(body) const title = body.match(/(.*)<\/title>/)[1]; diff --git a/themes/pulp b/themes/pulp index be3e20f..55a8368 160000 --- a/themes/pulp +++ b/themes/pulp @@ -1 +1 @@ -Subproject commit be3e20feb6562044b0b6559810d4482bf90f9ef2 +Subproject commit 55a8368001d86661596f3deda3a7dc291ae864d6