diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/[...path].tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pages/[...path].tsx b/src/pages/[...path].tsx index 9f55cf8..cf5db8c 100644 --- a/src/pages/[...path].tsx +++ b/src/pages/[...path].tsx @@ -29,12 +29,14 @@ export const getStaticProps = async (context: GetStaticPropsContext) => { : [context.params?.path] ); - const markdownSource = await benzinConfig.adapter.getMarkdownSource(benzinConfig.CDN, path); + const originalSource = await benzinConfig.adapter.getMarkdownSource(benzinConfig.CDN, path); + const sourceWithHooks = await benzinConfig.hooks.preRender(path, originalSource, benzinConfig.adapter, benzinConfig.CDN); + const emojiFileNames = await benzinConfig.adapter.getEmojiFileNames(benzinConfig.CDN, benzinConfig.paths.emojiRoot); return { props: { - markdownSource, + markdownSource: sourceWithHooks, emojiFileNames, path, } |