From 557d039858107c98ef49d61131efe79cf2d1e199 Mon Sep 17 00:00:00 2001 From: Nick Winans Date: Sun, 17 Jul 2022 15:00:21 -0700 Subject: [PATCH] Small improvements --- src/layouts/Layout.astro | 1 + src/pages/404.astro | 3 +-- src/pages/index.astro | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 05ec75f..d4d9446 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -13,6 +13,7 @@ const { title } = Astro.props as Props; {title} + diff --git a/src/pages/404.astro b/src/pages/404.astro index 564887e..ad6b77d 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -19,9 +19,8 @@ import Layout from "../layouts/Layout.astro"; pieces[i] = bases[parseInt(pieces[i], 2)]; } - var decoded = atob(pieces.join('')); - try { + var decoded = atob(pieces.join('')); new URL(decoded); window.location.href = decoded; } catch {} diff --git a/src/pages/index.astro b/src/pages/index.astro index 89b1433..0ab573b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -53,15 +53,14 @@ import Layout from "../layouts/Layout.astro";

Make your links loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.nger

- - + +