From 9d911a304ee041502c29e6112a40ad3ebf4a79da Mon Sep 17 00:00:00 2001 From: Georges Gomes Date: Fri, 25 Mar 2022 22:11:19 +0100 Subject: [PATCH] Support for head in frontmatters --- src/shared/shared.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/shared.ts b/src/shared/shared.ts index 64e26974..8999bab0 100644 --- a/src/shared/shared.ts +++ b/src/shared/shared.ts @@ -109,5 +109,6 @@ export function processHead( pageData: PageData ): HeadConfig[] { const combineHead = !head ? [] : typeof head === 'function' ? head(pageData) : head - return [...combineHead]; + const frontmatterHead = pageData && pageData.frontmatter.head + return [...combineHead, ...(frontmatterHead || [])] }