Jacky Zhao
2024-01-28 ba40516c544f4196302364a84ee2cbecb331d46d
quartz/processors/parse.ts
@@ -91,8 +91,9 @@
        }
        // base data properties that plugins may use
        file.data.slug = slugifyFilePath(path.posix.relative(argv.directory, file.path) as FilePath)
        file.data.filePath = fp
        file.data.filePath = file.path as FilePath
        file.data.relativePath = path.posix.relative(argv.directory, file.path) as FilePath
        file.data.slug = slugifyFilePath(file.data.relativePath)
        const ast = processor.parse(file)
        const newAst = await processor.run(ast, file)