halo-theme-hao/settings.yaml

712 lines
22 KiB
YAML
Raw Permalink 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: text
name: gongan
label: 公安备案
placeholder: 请输入公安备案号
help: "皖公网安备 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: textarea
if: "$get(recentTop).value"
name: bannersTitleBig
label: Banners 大标题
placeholder: 请输入大标题
value: Halo Theme Hao
help: 支持 HTML 语法
- $formkit: textarea
if: "$get(recentTop).value"
name: bannersTitleSmall
label: Banners 小标题
placeholder: 请输入小标题
value: 更多信息请关注 GitHub
help: 支持 HTML 语法
- $formkit: select
if: "$get(recentTop).value"
name: bannersBackground
label: 文章列表布局
value: default
options:
- label: 默认
value: default
- label: 技术栈
value: techStack
- label: 图片WIP
value: img
help: "Banner 底部背景,默认使用主题技术栈、自定义技术栈需要在【个人】中配置技术栈"
- $formkit: url
if: "$get(recentTop).value"
name: bikan
label: 必看精选
placeholder: 请输入地址
validation: "url"
value: "/"
- $formkit: url
if: "$get(recentTop).value"
name: remen
label: 热门文章
placeholder: 请输入地址
value: "/"
validation: "url"
- $formkit: url
if: "$get(recentTop).value"
name: shiyong
label: 实用教程
placeholder: 请输入地址
value: "/"
validation: "url"
- $formkit: radio
if: "$get(recentTop).value"
name: todayRecommend
id: todayRecommend
key: todayRecommend
label: 今日推荐
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group
if: "$get(todayRecommend).value"
name: todayRecommendContent
label: 今日推荐
value:
todayRecommendUrl:
todayRecommendTitle:
todayRecommendCover:
children:
- $formkit: url
name: todayRecommendUrl
label: 今日推荐跳转地址
placeholder: 请输入地址
validation: "url"
- $formkit: text
name: todayRecommendTitle
label: 今日推荐标题
placeholder: 请输入标题
value: "今日推荐"
- $formkit: url
name: todayRecommendCover
label: 今日推荐背景图
placeholder: 请输入地址
validation: "url"
- $formkit: select
if: "$get(recentTop).value"
name: recommendPost
id: recommendPost
key: recommendPost
label: 推荐文章
value: latest
options:
- label: 最新文章
value: latest
- label: 自定义
value: custom
- $formkit: repeater
if: "$get(recommendPost).value === custom"
name: recommendPostCustom
label: 自定义文章
help: "建议设置六篇文章"
value: []
children:
- $formkit: url
name: url
label: 链接
validation: "url"
- $formkit: text
name: title
label: 标题
- $formkit: url
name: cover
label: 封面地址
validation: "url"
- group: layout
label: 布局
formSchema:
- $formkit: select
name: nav
id: nav
key: nav
label: 文章导航
value: category
options:
- label: 分类
value: category
- label: 标签
value: tag
- label: 自定义分类
value: custom-category
- label: 自定义标签
value: custom-tag
- label: 自定义路径
value: custom-url
- $formkit: repeater
if: "$get(nav).value === 'custom-category'"
name: navCustomCategory
label: 自定义分类
value: [ ]
children:
- $formkit: categorySelect
name: category
label: 分类
- $formkit: repeater
if: "$get(nav).value === 'custom-tag'"
name: navCustomTag
label: 自定义标签
value: [ ]
children:
- $formkit: tagSelect
name: tag
label: 标签
- $formkit: repeater
if: "$get(nav).value === 'custom-url'"
name: navCustomUrl
label: 自定义路径
value: [ ]
children:
- $formkit: text
name: title
label: 标题
- $formkit: url
name: url
label: 链接
- $formkit: select
name: navMore
id: navMore
key: navMore
label: 文章导航更多跳转地址
value: hide
options:
- label: 隐藏
value: hide
- label: 分类
value: categories
- label: 标签
value: tags
- label: 自定义地址
value: customUrl
- $formkit: url
if: "$get(navMore).value === customUrl"
name: navMoreCustomUrl
label: 文章导航更多跳转路径
value:
- $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: []
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: url
name: url
label: 链接
- $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: 图片可以从公众号后台下载物料或者自制
- $formkit: number
name: tagQuantity
label: 标签数量
value: -1
help: "小于 0 则展示全部标签"
- $formkit: number
name: categoryQuantity
label: 分类数量
value: -1
help: "小于 0 则展示全部分类"
- group: footer
label: 页脚
formSchema:
- $formkit: repeater
name: socialMedia
label: 社交媒体
value: []
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: dynamicBackground
label: 动态主色
value: false
options:
- label: 打开
value: true
- label: 关闭
value: false
help: "文章主色匹配图片颜色"
- $formkit: number
name: recommendQuantity
label: 阅读建议
value: 4
help: "推荐阅读的文章数量"
- $formkit: number
name: recentPost
label: 最近发布文章
value: 4
help: "最近发布的文章数量"
- $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: about
label: 个人
formSchema:
- $formkit: repeater
name: techStack
label: 技术栈
help: 个人技术栈
value: []
children:
- $formkit: text
name: name
label: 名称
placeholder: 请输入名称
- $formkit: url
name: url
label: 路径
placeholder: 请输入图标路径
validation: "url"
- $formkit: color
name: background
label: 背景色
- 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: link
label: 友链
formSchema:
- $formkit: text
name: smallTitle
label: 小标题
value: 友情链接
- $formkit: text
name: bigTitle
label: 大标题
value: 我和我的小伙伴们
- 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