添加主题自定义配置参数

This commit is contained in:
dmxiaoshen
2023-04-21 10:35:32 +08:00
parent 50b1123c4a
commit cb692ea862
7 changed files with 105 additions and 108 deletions
+36 -83
View File
@@ -2,102 +2,55 @@
"name": "yinwang",
"version": "1.1.0",
"author": "dmxiaoshen",
"repository": "https://git.dmxiaoshen.com/dmxiaoshen/gridea-theme-yinwang",
"customConfig": [
{
"name": "sidebarWidth",
"label": "菜单栏宽度",
"group": "布局",
"value": "320px",
"type": "input",
"note": "可填像素类型(如:320px)或百分比类型(如:38.2%"
},
{
"name": "featureBorderRadius",
"label": "封面图圆角",
"group": "布局",
"value": "3px",
"type": "input",
"note": "像素类型(如:3px"
},
{
"name": "menuColor",
"label": "菜单颜色",
"group": "颜色",
"value": "#dee2e6",
"type": "input",
"card": "color",
"note": "颜色字符串:(如:#EEEEEE、rgba(255, 255, 255, 0.9)"
},
{
"name": "contentBgColor",
"label": "内容区背景色",
"group": "颜色",
"value": "#f8f9fa",
"type": "input",
"card": "color",
"note": "颜色字符串:(如:#EEEEEE、rgba(255, 255, 255, 0.9)"
},
{
"name": "renderKaTeX",
"label": "是否渲染 KaTeX 公式",
"group": "渲染",
"name": "hitokoto",
"label": "是否开启Hitokoto一言",
"group": "Hitokoto一言",
"type": "switch",
"value": false,
"type": "switch"
"note": "简单来说,一言指的就是一句话,可以是动漫中的台词,也可以是网络上的各种小段子。 或是感动,或是开心,有或是单纯的回忆。来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。"
},
{
"name": "renderCode",
"label": "是否渲染代码高亮",
"group": "渲染",
"name": "homeback",
"label": "是否显示返回首页按钮",
"group": "返回首页按钮",
"type": "switch",
"value": false,
"type": "switch"
"note": "关于、标签云、文章页显示返回首页按钮"
},
{
"name": "github",
"label": "Github",
"group": "社交",
"value": "",
"name": "showtag",
"label": "文章页是否显示标签",
"group": "文章页显示标签",
"type": "switch",
"value": false,
"note": "每篇文章的底部会显示该文章的标签"
},
{
"name": "wordcount",
"label": "是否统计文章字数",
"group": "统计文章字数",
"type": "switch",
"value": false,
"note": "统计每篇文章的字数,会在首页和归档页面呈现"
},
{
"name": "twikoo",
"label": "evnId",
"group": "Twikoo评论",
"type": "input",
"note": "链接地址"
"value": "",
"note": "请正确获取到Twikoo评论系统的evnId"
},
{
"name": "twitter",
"label": "Twitter",
"group": "社交",
"value": "",
"name": "tversion",
"label": "version",
"group": "Twikoo评论",
"type": "input",
"note": "链接地址"
},
{
"name": "weibo",
"label": "微博",
"group": "社交",
"value": "",
"type": "input",
"note": "链接地址"
},
{
"name": "zhihu",
"label": "知乎",
"group": "社交",
"value": "",
"type": "input",
"note": "链接地址"
},
{
"name": "facebook",
"label": "Facebook",
"group": "社交",
"value": "",
"type": "input",
"note": "链接地址"
},
{
"name": "customCss",
"label": "自定义CSS",
"group": "自定义样式",
"value": "",
"type": "textarea",
"note": ""
"note": "填写Twikoo评论系统的版本"
},
{
"name": "ga",