#225 - Placeholder support for front matter field values (template and content type)

This commit is contained in:
Elio Struyf
2022-01-15 20:35:06 +01:00
parent 66324fd292
commit 3e33383eb1
5 changed files with 108 additions and 10 deletions
+24
View File
@@ -198,6 +198,30 @@
},
"scope": "Content"
},
"frontMatter.content.placeholders": {
"type": "array",
"default": [],
"markdownDescription": "This array of placeholders defines the placeholders that you can use in your content types and templates for automatically populating your content its front matter. [Check in the docs](https://frontmatter.codes/docs/settings#frontmatter.content.placeholders)",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the placeholder, in your content type or template, use it as follows: {{placeholder}}"
},
"value": {
"type": "string",
"description": "The placeholder its value"
}
},
"additionalProperties": false,
"required": [
"id",
"value"
]
},
"scope": "Content"
},
"frontMatter.content.publicFolder": {
"type": "string",
"default": "",