From 830fc550bd00e60379ffcc7a99718ad67ff262aa Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 28 Jun 2022 14:48:10 +0200 Subject: [PATCH] Ignore keywords field --- CHANGELOG.md | 1 + .../components/ContentType/ContentTypeValidator.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1113cd..eafa82ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### 🎨 Enhancements +- Ignore the SEO `keywords` field for missing content type field - [#307](https://github.com/estruyf/vscode-front-matter/issues/307): New `list` field which allows to create a list of items - [#345](https://github.com/estruyf/vscode-front-matter/issues/345): Media dashboard UI improvements to visualize the content and public folders - [#349](https://github.com/estruyf/vscode-front-matter/issues/349): New `slug` field which allows you to manage the slug of your post from the Front Matter panel diff --git a/src/panelWebView/components/ContentType/ContentTypeValidator.tsx b/src/panelWebView/components/ContentType/ContentTypeValidator.tsx index 1b0c191f..d531255f 100644 --- a/src/panelWebView/components/ContentType/ContentTypeValidator.tsx +++ b/src/panelWebView/components/ContentType/ContentTypeValidator.tsx @@ -12,7 +12,7 @@ export interface IContentTypeValidatorProps { metadata: IMetadata } -const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`]; +const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`, `keywords`]; export const ContentTypeValidator: React.FunctionComponent = ({ fields, metadata}: React.PropsWithChildren) => {