mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 11:24:05 -06:00
fix: typo in permalink check
This commit is contained in:
parent
6ffbd905fb
commit
8df33942eb
@ -51,7 +51,7 @@ export function getAliasSlugs(aliases: string[], _argv: Argv, file: VFile): Full
|
|||||||
)
|
)
|
||||||
const permalink = file.data.frontmatter?.permalink
|
const permalink = file.data.frontmatter?.permalink
|
||||||
if (typeof permalink === "string") {
|
if (typeof permalink === "string") {
|
||||||
const absolutePermalink = permalink.startsWith("?") ? permalink : `/${permalink}`
|
const absolutePermalink = permalink.startsWith("/") ? permalink : `/${permalink}`
|
||||||
slugs.push(absolutePermalink as FullSlug)
|
slugs.push(absolutePermalink as FullSlug)
|
||||||
}
|
}
|
||||||
// fix any slugs that have trailing slash
|
// fix any slugs that have trailing slash
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user