From 4776c504430e8916b4f75b7c717f5458ad29ffec Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Wed, 8 May 2024 18:48:49 +0200 Subject: [PATCH 1/3] chore: rename demo blog post filename --- ...{succedere-velut-consumptis-ferat.1.md => pertimuit-munere.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/src/content/docs/blog/{succedere-velut-consumptis-ferat.1.md => pertimuit-munere.md} (100%) diff --git a/docs/src/content/docs/blog/succedere-velut-consumptis-ferat.1.md b/docs/src/content/docs/blog/pertimuit-munere.md similarity index 100% rename from docs/src/content/docs/blog/succedere-velut-consumptis-ferat.1.md rename to docs/src/content/docs/blog/pertimuit-munere.md From 0f82e1dc233eb650046e772ce066c2936d3f4021 Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Wed, 8 May 2024 18:57:36 +0200 Subject: [PATCH 2/3] fix: prevents the blog post and tag lists from being included in the Pagefind search index to avoid duplicated search results --- packages/starlight-blog/libs/page.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/starlight-blog/libs/page.ts b/packages/starlight-blog/libs/page.ts index 85a86f3..43f8ecc 100644 --- a/packages/starlight-blog/libs/page.ts +++ b/packages/starlight-blog/libs/page.ts @@ -1,3 +1,4 @@ +import type { StarlightPageProps } from '@astrojs/starlight/props' import type { AstroConfig } from 'astro' import config from 'virtual:starlight-blog-config' import context from 'virtual:starlight-blog-context' @@ -54,13 +55,8 @@ export function isBlogTagsPage(slug: string, tag: string) { export function getPageProps(title: string): StarlightPageProps { return { frontmatter: { + pagefind: false, title, }, } } - -interface StarlightPageProps { - frontmatter: { - title: string - } -} From 98967b95a151423e9af93059525bd5875997e297 Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Wed, 8 May 2024 18:57:51 +0200 Subject: [PATCH 3/3] fix: prevents blog navigation links from being included in the Pagefind search index to avoid duplicated search results --- packages/starlight-blog/components/PrevNextLinks.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/starlight-blog/components/PrevNextLinks.astro b/packages/starlight-blog/components/PrevNextLinks.astro index e6ff9c7..c5333e9 100644 --- a/packages/starlight-blog/components/PrevNextLinks.astro +++ b/packages/starlight-blog/components/PrevNextLinks.astro @@ -13,7 +13,7 @@ const { next, prev } = Astro.props { prev || next ? ( -