hexo-theme-amane/include/schema/common/article.json

50 lines
1.7 KiB
JSON
Raw Normal View History

2019-12-25 01:24:34 +00:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "/common/article.json",
"description": "Article related configurations",
"type": "object",
"properties": {
"highlight": {
"type": "object",
"description": "Code highlight settings",
"properties": {
"theme": {
"type": "string",
"description": "Code highlight themes\nhttps://github.com/highlightjs/highlight.js/tree/master/src/styles",
"default": "atom-one-light",
"nullable": true
2019-12-25 01:24:34 +00:00
},
"clipboard": {
"type": "boolean",
2019-12-25 01:24:34 +00:00
"description": "Show copy code button",
"default": true,
"nullable": true
2019-12-25 01:24:34 +00:00
},
"fold": {
"type": "string",
"description": "Default folding status of the code blocks. Can be \"\", \"folded\", \"unfolded\"",
"enum": [
"",
"folded",
"unfolded"
],
"default": "unfolded",
"nullable": true
2019-12-25 01:24:34 +00:00
}
},
"nullable": true
2019-12-25 01:24:34 +00:00
},
"thumbnail": {
"type": "boolean",
"description": "Whether to show thumbnail image for every article",
"default": true,
"nullable": true
2019-12-25 01:24:34 +00:00
},
"readtime": {
"type": "boolean",
"description": "Whether to show estimated article reading time",
"default": true,
"nullable": true
2019-12-25 01:24:34 +00:00
}
}
}