File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- import { isRelativeURL , resolveRelative , simplifySlug } from "../../util/path"
1+ import { FullSlug , isRelativeURL , resolveRelative , simplifySlug } from "../../util/path"
22import { QuartzEmitterPlugin } from "../types"
33import { write } from "./helpers"
44import { BuildCtx } from "../../util/ctx"
@@ -9,9 +9,11 @@ async function* processFile(ctx: BuildCtx, file: VFile) {
99 const ogSlug = simplifySlug ( file . data . slug ! )
1010
1111 for ( const aliasTarget of file . data . aliases ?? [ ] ) {
12- const aliasTargetSlug = isRelativeURL ( aliasTarget )
13- ? path . normalize ( path . join ( ogSlug , ".." , aliasTarget ) )
14- : aliasTarget
12+ const aliasTargetSlug = (
13+ isRelativeURL ( aliasTarget )
14+ ? path . normalize ( path . join ( ogSlug , ".." , aliasTarget ) )
15+ : aliasTarget
16+ ) as FullSlug
1517
1618 const redirUrl = resolveRelative ( aliasTargetSlug , ogSlug )
1719 yield write ( {
You can’t perform that action at this time.
0 commit comments