From 40122dc318dd4b5b8698e7871cde5aec75241490 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Thu, 28 Nov 2024 17:41:57 -0500 Subject: [PATCH] Removed common title suffix --- content/offline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/offline.md b/content/offline.md index 45eda15..7e86f5b 100644 --- a/content/offline.md +++ b/content/offline.md @@ -49,7 +49,7 @@ async function listPages() { if (post.headers.get('content-type').includes('text/html')) { const body = await post.text(); console.log(body) - const title = body.match(/(.*)<\/title>/)[1]; + const title = body.match(/<title>(.*)<\/title>/)[1].replace("| Brandon Rozek", ""); result.push({ url, post,