Skip to content

Commit

Permalink
fix: createContentLoader generates invalid url when base is set (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Jul 31, 2023
1 parent 7778187 commit 0f38eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/contentLoader.ts
Expand Up @@ -140,7 +140,7 @@ export function createContentLoader<T = ContentData[]>(
: { excerpt: renderExcerpt }
)
const url =
'/' +
config.site.base +
normalizePath(path.relative(config.srcDir, file))
.replace(/(^|\/)index\.md$/, '$1')
.replace(/\.md$/, config.cleanUrls ? '' : '.html')
Expand Down

0 comments on commit 0f38eb4

Please sign in to comment.