Skip to content

Commit

Permalink
fix duplicated base paths in pagefind #502
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Oct 26, 2023
1 parent 55b5f92 commit aae5b33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/pagefind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default function (userOptions?: DeepPartial<Options>) {
// 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,
});

Expand Down

0 comments on commit aae5b33

Please sign in to comment.