From 602cdae2927c8cb2d1c971a02884bf0f8c6698b2 Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Wed, 9 Oct 2024 00:53:33 -0400 Subject: [PATCH 1/3] Use relative uris for posts. This tripped me up during testing. All links went to the production URL. Makes more sense to make these relative I think! --- src/layouts/BlogPosts.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/BlogPosts.astro b/src/layouts/BlogPosts.astro index 12896e4..e40176c 100644 --- a/src/layouts/BlogPosts.astro +++ b/src/layouts/BlogPosts.astro @@ -62,7 +62,7 @@ const { posts.map((post) => ( Date: Wed, 16 Oct 2024 00:06:41 -0400 Subject: [PATCH 2/3] Make Urls root-relative (and fix a few more) --- src/layouts/BlogPost/index.astro | 4 ++-- src/layouts/BlogPosts.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/BlogPost/index.astro b/src/layouts/BlogPost/index.astro index 921df39..3747d27 100644 --- a/src/layouts/BlogPost/index.astro +++ b/src/layouts/BlogPost/index.astro @@ -130,7 +130,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-US', { { tags && tags.length > 0 && ( [tag, `${BLOG_URL}tags/${tag}`]))} + tags={Object.fromEntries(tags.map((tag) => [tag, `/tags/${tag}`]))} isOpen={true} /> ) @@ -148,7 +148,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-US', {
  • ( Date: Wed, 16 Oct 2024 00:10:11 -0400 Subject: [PATCH 3/3] spaces are out, tabs are in! --- src/layouts/BlogPost/index.astro | 4 ++-- src/layouts/BlogPosts.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/BlogPost/index.astro b/src/layouts/BlogPost/index.astro index 3747d27..4dcc09b 100644 --- a/src/layouts/BlogPost/index.astro +++ b/src/layouts/BlogPost/index.astro @@ -130,7 +130,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-US', { { tags && tags.length > 0 && ( [tag, `/tags/${tag}`]))} + tags={Object.fromEntries(tags.map((tag) => [tag, `/tags/${tag}`]))} isOpen={true} /> ) @@ -148,7 +148,7 @@ const dateFormatter = new Intl.DateTimeFormat('en-US', {
  • (