diff --git a/src/parts/meta/index.ts b/src/parts/meta/index.ts index 41bd0e4..c364a9f 100644 --- a/src/parts/meta/index.ts +++ b/src/parts/meta/index.ts @@ -58,10 +58,11 @@ export default (pwa: PWAContext) => { head.meta.push({ name: 'description', content: options.description }) // Theme Color - const themeColor = pwa.meta.theme_color || (pwa.manifest && pwa.manifest.theme_color) - - if (themeColor) - head.meta.push({ name: 'theme-color', content: themeColor }) + if (options.theme_color !== false) { + const themeColor = pwa.meta.theme_color || (pwa.manifest && pwa.manifest.theme_color) + if (themeColor) + head.meta.push({ name: 'theme-color', content: themeColor }) + } // Lang if (options.lang) { diff --git a/src/parts/meta/types.ts b/src/parts/meta/types.ts index bb01d1a..5d4e695 100644 --- a/src/parts/meta/types.ts +++ b/src/parts/meta/types.ts @@ -1,20 +1,20 @@ export interface MetaOptions { name: string - author: string - description: string + author: string | false + description: string | false favicon: boolean mobileApp: boolean mobileAppIOS: boolean appleStatusBarStyle: boolean - theme_color: string | undefined - lang: string - ogType: string - ogSiteName: boolean | string - ogTitle: boolean | string - ogDescription: boolean | string - ogImage: boolean | string | { path: string; width?: number; height?: number; type?: string } + theme_color: string | false | undefined + lang: string | false + ogType: string | false + ogSiteName: string | boolean + ogTitle: string | boolean + ogDescription: string | boolean + ogImage: string | boolean | { path: string; width?: number; height?: number; type?: string } ogHost: string | undefined - ogUrl: boolean | string + ogUrl: string | boolean twitterCard: string | undefined twitterSite: string | undefined twitterCreator: string | undefined