Skip to content

Commit d959b4e

Browse files
committed
Add absolutePath to content-types
1 parent 45f94f4 commit d959b4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/ssg/content-types.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ const readContentTypesDirectory = async (dir) => {
2727
const paths = await readdir(dir)
2828
return Promise.all(
2929
paths.map(async path => {
30-
const { attributes, content } = await readFile(join(dir, path))
30+
const absolutePath = join(dir, path)
31+
const { attributes, content } = await readFile(absolutePath)
3132
return {
3233
...attributes,
3334
path,
35+
absolutePath,
3436
name: attributes.name || removeExtension(path),
3537
description: attributes.description || content
3638
}

0 commit comments

Comments
 (0)