doc/markdownlint-rules-grav-pages/rules/frontmatter.schema.json

120 lines
3.5 KiB
JSON
Raw Permalink Normal View History

{
"type": "object",
"properties": {
"title": { "type": "bool", "minLength": 2, "maxLength": 80 },
"media_order": { "type": "string" },
"body_classes": { "type": "string" },
"published": { "type": "boolean" },
"visible": { "type": "boolean" },
"redirect": { "type": "string" },
"cache_enable": { "type": "boolean" },
"debugger": { "type": "boolean" },
"never_cache_twig": { "type": "boolean" },
"twig_first": { "type": "boolean" },
"routable": { "type": "boolean" },
"login_redirect_here": { "type": "boolean" },
"last_modified": { "type": "boolean" },
"http_response_code": { "type": "integer" },
"lightbox": { "type": "boolean" },
"etag": { "type": "boolean" },
"template": { "type": "string" },
"template_format": { "type": "string" },
"date": { "type": "string" },
"publish_date": { "type": "string" },
"unpublish_date": { "type": "string" },
"expires": { "type": "integer" },
"menu": { "type": "string", "minLength": 2, "maxLength": 30 },
"slug": { "type": "string" },
"routes": {
"type": "object",
"properties": {
"default": { "type": "string" },
"canonical": { "type": "string" },
"aliases": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"taxonomy": {
"type": "object",
"properties": {
"category": { "type": "array", "items": { "type": "string" } },
"tag": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"external_url": { "type": "string" },
"external_links": {
"type": "object",
"properties": {
"target": { "type": "string" }
},
"additionalProperties": false
},
"author": {
"type": "object",
"properties": {
"name": { "type": "string" },
"twitter": { "type": "string" },
"bio": { "type": "string" }
},
"additionalProperties": false
},
"summary": {
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"format": { "type": "string" },
"size": { "type": "integer" }
},
"additionalProperties": false
},
"sitemap": {
"type": "object",
"properties": {
"changefreq": { "type": "string" },
"priority": { "type": "number" }
},
"additionalProperties": false
},
"process": {
"type": "object",
"properties": {
"markdown": { "type": "boolean" },
"twig": { "type": "boolean" }
},
"additionalProperties": false
},
"markdown": {
"type": "object",
"properties": {
"extra": { "type": "boolean" },
"auto_line_breaks": { "type": "boolean" },
"auto_url_links": { "type": "boolean" },
"escape_markup": { "type": "boolean" },
"special_chars": { "type": "object", "additionalProperties": { "type": "string" } }
},
"additionalProperties": false
},
"metadata": {
"type": "object",
"properties": {
"refresh": { "type": "integer" }
},
"additionalProperties": { "type": "string" }
},
"page-toc": {
"type": "object",
"properties": {
"active": { "type": "boolean" },
"start": { "type": "integer" },
"depth": { "type": "integer" }
},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"title"
]
}