halo-theme-hao/settings.yaml

576 lines
18 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: v1alpha1
kind: Setting
metadata:
name: theme-hao-setting
spec:
forms:
- group: basics
label: 基础
formSchema:
- $formkit: date
name: siteStartTime
label: 建站时间
- $formkit: text
name: icp
label: ICP 备案
placeholder: 请输入 ICP 备案号
help: "京ICP备xxxxxxxx号"
- $formkit: url
name: copyrightAgreement
label: 版权协议
placeholder: "请输入版权协议地址"
help: '文章模块声明版权,也会使用此协议'
- group: nav
label: 导航
formSchema:
- $formkit: menuRadio
name: leftMenu
label: 导航栏左侧相关链接
- $formkit: text
name: siteTitle
label: 标题
placeholder: 请输入标题
help: '支持 HTML 语法,比如 <i class="iconfont icon-logo-hao-pro" style="font-size: 1rem"></i>,留空为站点名称'
- group: top
label: 顶部
formSchema:
- $formkit: radio
name: moment
label: 说说模块
value: true
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: recentTop
id: recentTop
key: recentTop
label: 首页顶部
value: true
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: text
if: "$get(recentTop).value"
name: bannersTitleBig
label: Banners 大标题
placeholder: 请输入大标题
help: 支持 HTML 语法
- $formkit: text
if: "$get(recentTop).value"
name: bannersTitleSmall
label: Banners 小标题
placeholder: 请输入小标题
help: 支持 HTML 语法
- $formkit: repeater
if: "$get(recentTop).value"
name: bannersIconPair
label: Banner 滚动图标
help: 为空时会使用系统内置图标
value:
- top:
bottom:
children:
- $formkit: group
name: top
label: 上图标
value:
url:
name:
background:
children:
- $formkit: url
name: url
label: 路径
placeholder: 请输入图标路径
validation: "url"
- $formkit: text
name: name
label: 名称
placeholder: 请输入名称
- $formkit: color
name: background
label: 背景色
- $formkit: group
name: bottom
label: 下图标
value:
url:
name:
background:
children:
- $formkit: url
name: url
label: 路径
placeholder: 请输入图标路径
validation: "url"
- $formkit: text
name: name
label: 名称
placeholder: 请输入名称
- $formkit: color
name: background
label: 背景色
- $formkit: url
if: "$get(recentTop).value"
name: bikan
label: 必看精选
placeholder: 请输入地址
validation: "url"
- $formkit: url
if: "$get(recentTop).value"
name: remen
label: 必看精选
placeholder: 请输入地址
validation: "url"
- $formkit: url
if: "$get(recentTop).value"
name: shiyong
label: 必看精选
placeholder: 请输入地址
validation: "url"
- $formkit: radio
if: "$get(recentTop).value"
name: todayRecommend
label: 今日推荐
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: url
if: "$get(recentTop).value"
name: todayRecommendUrl
label: 今日推荐跳转地址
placeholder: 请输入地址
validation: "url"
- $formkit: text
if: "$get(recentTop).value"
name: todayRecommendTitle
label: 今日推荐标题
placeholder: 请输入标题
value: "今日推荐"
- $formkit: url
if: "$get(recentTop).value"
name: todayRecommendCover
label: 今日推荐背景图
placeholder: 请输入地址
validation: "url"
- group: layout
label: 布局
formSchema:
- $formkit: select
name: cols
label: 文章列表布局
value: col2
options:
- label: 单列
value: col1
- label: 两列
value: col2
- label: 三列
value: col3
- label: 四列
value: col4
help: "建议单列时,将图片放在左右"
- $formkit: select
name: postLocation
label: 封面位置
value: top
options:
- label: 上方
value: top
- label: 左侧
value: left
- label: 右侧
value: right
- label: 交替
value: alternate
- $formkit: url
name: postRandomImg
label: 博客封面随机 API
validation: "url"
value: "https://source.unsplash.com/random/600x400/?blog,scenery,night,desert,sea"
help: 二次元随机图地址https://www.dmoe.cc/random.php 默认随机封面图 url 不能保证一直可用
- group: sidebar
label: 侧栏
formSchema:
- $formkit: select
name: location
label: 侧边栏位置
value: "right-aside"
options:
- value: "hide-aside"
label: "隐藏"
- value: "right-aside"
label: "右侧"
- value: "left-aside"
label: "左侧"
- $formkit: textarea
name: widgets
label: 小部件
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
help: "目前提供的小部件有profile站点资料, wechat微信, recent-posts近期文章, comments最新评论, categories文章分类, tags文章标签, stat统计, tags-stat标签&统计)。你可以随意组合或排序,以逗号隔开。"
- $formkit: textarea
name: postWidgets
label: 文章页面小部件
value: "profile,wechat,toc,comments,recent-posts,categories,tags-stat"
help: "post 可以支持设置 toc "
- $formkit: textarea
name: tagWidgets
label: 标签页面小部件
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
- $formkit: textarea
name: categoryWidgets
label: 分类页面小部件
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
- $formkit: textarea
name: pageWidgets
label: 自定义页面小部件
value: ""
help: "自定义页面默认没有侧栏"
- $formkit: group
name: profile
value:
profileName:
profileDesc:
socialMedia:
children:
- $formkit: text
name: profileName
label: 个人卡片名称
placeholder: 请填写个人卡片名称
help: "不填写默认为站点则名称"
- $formkit: textarea
name: profileDesc
placeholder: 请填写个人卡片描述信息
help: "支持使用 HTML 标签"
- $formkit: repeater
name: socialMedia
label: 社交媒体
help: 侧栏社交媒体建议只设置两个
value:
- icon:
name:
url:
urlType: normal
children:
- $formkit: select
name: icon
label: 图标
options:
- label: 电子邮箱
value: icon-mail-line
- label: 微信
value: icon-wechat2
- label: 公众号
value: icon-weixingongzhonghao
- label: 腾讯 QQ
value: icon-qq-line
- label: 新浪微博
value: icon-weibo-line
- label: 知乎
value: icon-zhihu-line
- label: 豆瓣
value: icon-douban-line
- label: 哔哩哔哩
value: icon-bilibili-line
- label: GitHub
value: icon-github-line
- label: GitLab
value: icon-gitlab-line
- label: 百度
value: icon-baidu-line
- label: 掘金
value: icon-juejin
- label: 语雀
value: icon-yuque
- label: 博客园
value: icon-CN_cnblogs
- label: CSDN
value: icon-csdn1
- label: LeetCode
value: icon-leetcode
- label: 头条
value: icon-jinritoutiao
- label: 抖音 / TikTok
value: icon-douyin
- label: Telegram
value: icon-telegram-line
- label: Facebook
value: icon-facebook-box-line
- label: Instagram
value: icon-instagram-line
- label: LinkedIn
value: icon-linkedin-box-line
- label: Twitter
value: icon-twitter-line
- label: Slack
value: icon-slack-line
- label: Discord
value: icon-discord-line
- label: YouTube
value: icon-youtube-line
- label: Steam
value: icon-steam-fill
- label: Dribbble
value: icon-dribbble-line
- $formkit: text
name: name
label: 名称
- $formkit: text
name: url
label: 链接
validation: "url"
- $formkit: radio
name: urlType
label: 链接类型
value: normal
help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载"
options:
- label: 跳转链接
value: normal
- label: 图片
value: image
- $formkit: group
name: wechat
label: 公众号
value:
wechatImgFace:
wechatImgBack:
children:
- $formkit: url
name: wechatImgFace
placeholder: 公众号正面图
validation: "url"
- $formkit: url
name: wechatImgBack
placeholder: 公众号背面图
validation: "url"
help: 图片可以从公众号后台下载物料或者自制
- group: footer
label: 页脚
formSchema:
- $formkit: repeater
name: socialMedia
label: 社交媒体
value:
- icon:
name:
url:
urlType: normal
children:
- $formkit: select
name: icon
label: 图标
options:
- label: 电子邮箱
value: icon-mail-line
- label: 微信
value: icon-wechat2
- label: 公众号
value: icon-weixingongzhonghao
- label: 腾讯 QQ
value: icon-qq-line
- label: 新浪微博
value: icon-weibo-line
- label: 知乎
value: icon-zhihu-line
- label: 豆瓣
value: icon-douban-line
- label: 哔哩哔哩
value: icon-bilibili-line
- label: GitHub
value: icon-github-line
- label: GitLab
value: icon-gitlab-line
- label: 百度
value: icon-baidu-line
- label: 掘金
value: icon-juejin
- label: 语雀
value: icon-yuque
- label: 博客园
value: icon-CN_cnblogs
- label: CSDN
value: icon-csdn1
- label: LeetCode
value: icon-leetcode
- label: 头条
value: icon-jinritoutiao
- label: 抖音 / TikTok
value: icon-douyin
- label: Telegram
value: icon-telegram-line
- label: Facebook
value: icon-facebook-box-line
- label: Instagram
value: icon-instagram-line
- label: LinkedIn
value: icon-linkedin-box-line
- label: Twitter
value: icon-twitter-line
- label: Slack
value: icon-slack-line
- label: Discord
value: icon-discord-line
- label: YouTube
value: icon-youtube-line
- label: Steam
value: icon-steam-fill
- label: Dribbble
value: icon-dribbble-line
- $formkit: text
name: name
label: 名称
- $formkit: text
name: url
label: 链接
validation: "url"
- $formkit: radio
name: urlType
label: 链接类型
value: normal
help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载"
options:
- label: 跳转链接
value: normal
- label: 图片
value: image
- $formkit: menuRadio
name: menu
label: 底部相关链接
- group: post
label: 文章
formSchema:
- $formkit: radio
name: copyright
label: 版权声明
value: true
options:
- label: 打开
value: true
- label: 关闭
value: false
help: "文章底部显示版权声明模块"
- $formkit: textarea
name: copyrightInfo
label: 版权声明
placeholder: '本文是原创文章,采用 <a target="_blank" href="/cc">CC BY-NC-ND 4.0</a> 协议,完整转载请注明来自 <a href="/" target="_blank" >程序员小航</a>'
help: "版权声明内容,支持填入 HTML 标签"
- group: style
label: 样式WIP
formSchema:
- $formkit: radio
name: colorScheme
label: 默认配色
value: system
options:
- label: 跟随系统
value: system
- label: 深色
value: dark
- label: 浅色
value: light
- $formkit: checkbox
name: enableChangeColorScheme
label: 允许访客切换配色
value: true
- $formkit: textarea
name: fontFamily
label: 全局字体
placeholder: '"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei"'
- $formkit: url
name: backgroundImg
label: 全局背景图
placeholder: "请输入图片地址"
- group: snackbar
label: 弹窗
help: 右下角 snackbar 弹窗
formSchema:
- $formkit: radio
name: switch
label: 开关WIP
value: true
options:
- label: 打开
value: true
- label: 关闭
value: false
- $formkit: radio
name: introduction
label: 介绍框WIP
value: true
options:
- label: 打开
value: true
- label: 关闭
value: false
- $formkit: text
name: introductionTitle
label: 介绍框标题
value: '欢迎使用主题 Hao'
- $formkit: text
name: introductionTip
label: 介绍框内容
value: '⭐️ Star halo-theme-hao提交主题建议或意见。'
- $formkit: url
name: introductionUrl
validation: "url"
value: "https://github.com/liuzhihang/halo-theme-hao"
label: 介绍框点击跳转地址
placeholder: 请输入跳转 url
- group: rightMenu
label: 右键菜单
formSchema:
- $formkit: radio
name: switch
label: 开关
value: false
options:
- label: 打开
value: true
- label: 关闭
value: false
- group: other
label: 其他设置
formSchema:
- $formkit: radio
name: loadingBox
label: 加载页
value: true
options:
- label: 打开
value: true
- label: 关闭
value: false
- $formkit: url
name: loadingBoxImg
validation: "url"
label: 加载页图片 URL
placeholder: 请输入图片 url
- $formkit: radio
name: loadProgressBar
label: 页面加载进度条
value: true
help: 了解更多https://codebyzach.github.io/pace/
options:
- label: 开启
value: true
- label: 关闭
value: false