mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 12:42:28 +02:00
added read time on index and post pages
This commit is contained in:
@@ -52,7 +52,7 @@ const createPages: GatsbyNode["createPages"] = async ({ graphql, actions }) => {
|
||||
createPage({
|
||||
path: node.fields.slug,
|
||||
component: constants.templates.postTemplate,
|
||||
context: { slug: node.fields.slug },
|
||||
context: { slug: node.fields.slug, readingTime: node?.fields?.readingTime },
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user