From 2758c944342fec3d6460e05afc718e853cc32aa5 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 15 Sep 2021 17:12:37 +0200 Subject: [PATCH] Added new setting to documentation --- docs/content/docs/settings.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/settings.md b/docs/content/docs/settings.md index 7667b059..b5ef7a04 100644 --- a/docs/content/docs/settings.md +++ b/docs/content/docs/settings.md @@ -131,6 +131,15 @@ Specify the date format for your articles. Check [date-fns formating](https://da - Type: `string` - Default: `iso` +## frontMatter.taxonomy.commaSeparatedFields + +Specify the fields names that Front Matter should treat as a comma-separated array. + +- Type: `string[]` +- Default: `[]` + +> **Info**: As some site generators expect arrays in `YAML` to be comma-separated like Pelican. You can use this setting to define which of the front matter properties should be treated as an comma-separated array. + ### frontMatter.taxonomy.tags Specifies the tags which can be used in the Front Matter. diff --git a/package.json b/package.json index eb5eb92d..55dc875b 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ }, "frontMatter.taxonomy.commaSeparatedFields": { "type": "array", - "markdownDescription": "Specify the fields that are comma seperated arrays in your front matter. [Check in the docs](https://frontmatter.codes/docs/settings#frontMatter.taxonomy.commaSeparatedFields)" + "markdownDescription": "Specify the fields names that Front Matter should treat as a comma-separated array. [Check in the docs](https://frontmatter.codes/docs/settings#frontMatter.taxonomy.commaSeparatedFields)" }, "frontMatter.taxonomy.dateFormat": { "type": "string",