From 7283b22a13e42ef136e79a0a6e2bfd8134421c4f Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 13 May 2023 14:51:36 +0200 Subject: [PATCH] refactor: make the catch-all content HTML --- src/pages/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 9ff8e58..c4cfb0f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,14 +6,14 @@ import Post from "../components/post.astro"; import Layout from "../layouts/layout.astro"; const params = getParams(Astro.url); -const url: string = params?.url || ""; +const url = params?.url; let article; try { article = isURL(url) && (await extract(url)); } catch { article = { title: "Something is not right", - content: "The article extractor did not get any result", + content: "

The article extractor did not get any result

", }; } ---