From aae5b3337fb848ba499830b996a6f85ed105aed2 Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Thu, 26 Oct 2023 16:06:06 +0200 Subject: [PATCH] fix duplicated base paths in pagefind #502 --- CHANGELOG.md | 2 ++ plugins/pagefind.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9af38d9d..a4b57eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Any BREAKING CHANGE between minor versions will be documented here in upper case ## [Unreleased] ### Fixed +- Wrong urls in `pagefind` with `base_path` plugin [#502]. - Updated deps: `tailwindcss`, `deno_dom`, `highlight.js`, `sass`. ## [1.19.2] - 2023-10-21 @@ -2462,6 +2463,7 @@ The first version. [#490]: https://github.com/lumeland/lume/issues/490 [#492]: https://github.com/lumeland/lume/issues/492 [#496]: https://github.com/lumeland/lume/issues/496 +[#502]: https://github.com/lumeland/lume/issues/502 [Unreleased]: https://github.com/lumeland/lume/compare/v1.19.2...HEAD [1.19.2]: https://github.com/lumeland/lume/compare/v1.19.1...v1.19.2 diff --git a/plugins/pagefind.ts b/plugins/pagefind.ts index 25bb17a6..7df881d3 100644 --- a/plugins/pagefind.ts +++ b/plugins/pagefind.ts @@ -135,7 +135,7 @@ export default function (userOptions?: DeepPartial) { // Page indexing for (const page of pages) { const { errors } = await index.addHTMLFile({ - url: site.url(page.outputPath as string), + url: page.data.url as string, content: page.content as string, });