| | |
| | | import { ProcessedContent } from '../plugins/vfile' |
| | | import { PerfTimer } from '../perf' |
| | | import { read } from 'to-vfile' |
| | | import { pathToSlug } from '../path' |
| | | import { slugify } from '../path' |
| | | import path from 'path' |
| | | import { QuartzTransformerPlugin } from '../plugins/types' |
| | | |
| | |
| | | const file = await read(fp) |
| | | |
| | | // base data properties that plugins may use |
| | | file.data.slug = pathToSlug(path.relative(baseDir, file.path)) |
| | | file.data.slug = slugify(path.relative(baseDir, file.path)) |
| | | file.data.filePath = fp |
| | | |
| | | const ast = processor.parse(file) |