mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-04 21:23:14 +00:00
use posix style paths for all path ops
This commit is contained in:
parent
de72dd4e4a
commit
663c41fa41
7 changed files with 6 additions and 13 deletions
quartz/plugins/transformers
|
@ -27,7 +27,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options> | und
|
|||
let modified: MaybeDate = undefined
|
||||
let published: MaybeDate = undefined
|
||||
|
||||
const fp = path.join(file.cwd, file.data.filePath as string)
|
||||
const fp = path.posix.join(file.cwd, file.data.filePath as string)
|
||||
for (const source of opts.priority) {
|
||||
if (source === "filesystem") {
|
||||
const st = await fs.promises.stat(fp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue