mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 18:59:40 +08:00
chore: 部分内容适配
This commit is contained in:
parent
32e87ec4dc
commit
9c4fc6afbc
905
settings.yaml
905
settings.yaml
@ -130,30 +130,28 @@ spec:
|
||||
name: banner_description
|
||||
label: 横幅文字描述
|
||||
placeholder: '请输入描述内容'
|
||||
# - $formkit: text
|
||||
# name: theme_style
|
||||
# label: 主题风格
|
||||
# type: select
|
||||
# value: 'default'
|
||||
# help: '主题风格效果,不改变主题整体框架。'
|
||||
# options:
|
||||
# - value: 'default'
|
||||
# label: 默认
|
||||
# - value: 'clean'
|
||||
# label: 清爽
|
||||
# - $formkit: text
|
||||
# name: default_theme
|
||||
# label: 默认主题模式
|
||||
# type: select
|
||||
# value: 'light'
|
||||
# help: '未打开过博客的浏览器,首次打开博客时的默认主题模式。'
|
||||
# options:
|
||||
# - value: 'light'
|
||||
# label: 明亮模式
|
||||
# - value: 'night'
|
||||
# label: 黑暗模式
|
||||
# - value: 'system'
|
||||
# label: 跟随系统
|
||||
- $formkit: select
|
||||
name: theme_style
|
||||
label: 主题风格
|
||||
value: 'default'
|
||||
help: '主题风格效果,不改变主题整体框架。'
|
||||
options:
|
||||
- value: 'default'
|
||||
label: 默认
|
||||
- value: 'clean'
|
||||
label: 清爽
|
||||
- $formkit: select
|
||||
name: default_theme
|
||||
label: 默认主题模式
|
||||
value: 'light'
|
||||
help: '未打开过博客的浏览器,首次打开博客时的默认主题模式。'
|
||||
options:
|
||||
- value: 'light'
|
||||
label: 明亮模式
|
||||
- value: 'night'
|
||||
label: 黑暗模式
|
||||
- value: 'system'
|
||||
label: 跟随系统
|
||||
# - $formkit: text
|
||||
# name: theme_color
|
||||
# label: 明亮模式主题色
|
||||
@ -164,69 +162,65 @@ spec:
|
||||
# label: 黑暗模式主题色
|
||||
# type: color
|
||||
# value: '#5d93db'
|
||||
# - $formkit: text
|
||||
# name: web_font
|
||||
# label: 博客字体
|
||||
# type: select
|
||||
# value: 'default'
|
||||
# options:
|
||||
# - value: 'default'
|
||||
# label: 默认字体
|
||||
# - value: 'WenCang.woff2'
|
||||
# label: 问藏书房体
|
||||
# - value: 'custom'
|
||||
# label: 自定义
|
||||
- $formkit: select
|
||||
name: web_font
|
||||
label: 博客字体
|
||||
value: 'default'
|
||||
options:
|
||||
- value: 'default'
|
||||
label: 默认字体
|
||||
- value: 'WenCang.woff2'
|
||||
label: 问藏书房体
|
||||
- value: 'custom'
|
||||
label: 自定义
|
||||
- $formkit: attachment
|
||||
name: custom_font
|
||||
label: 自定义博客字体
|
||||
placeholder: '请输入/选择字体路径'
|
||||
help: '自定义博客字体,在博客字体选项为自定义时生效。支持woff2/woff/ttf/eot/svg格式的字体文件链接,建议使用woff2格式。'
|
||||
# - $formkit: text
|
||||
# name: sidebar_column
|
||||
# label: 博客布局方式
|
||||
# type: select
|
||||
# value: 'all'
|
||||
# options:
|
||||
# - value: 'all'
|
||||
# label: 三列布局
|
||||
# - value: 'only-left'
|
||||
# label: 仅显示左侧
|
||||
# - value: 'only-right'
|
||||
# label: 仅显示右侧
|
||||
# - value: 'module-left'
|
||||
# label: 模块化(左侧)
|
||||
# - value: 'module-right'
|
||||
# label: 模块化(右侧)
|
||||
- $formkit: select
|
||||
name: sidebar_column
|
||||
label: 博客布局方式
|
||||
value: 'all'
|
||||
options:
|
||||
- value: 'all'
|
||||
label: 三列布局
|
||||
- value: 'only-left'
|
||||
label: 仅显示左侧
|
||||
- value: 'only-right'
|
||||
label: 仅显示右侧
|
||||
- value: 'module-left'
|
||||
label: 模块化(左侧)
|
||||
- value: 'module-right'
|
||||
label: 模块化(右侧)
|
||||
# - $formkit: text
|
||||
# name: module_links
|
||||
# label: 模块化布局链接
|
||||
# type: textarea
|
||||
# placeholder: '标签|文字说明|是否新界面打开(true/false)|背景图链接|跳转链接地址'
|
||||
# help: '以标签|文字说明|是否新界面打开(true/false)|背景图链接|跳转链接地址格式填写内容,一行表示一个模块链接,可填写 1~6 个链接。'
|
||||
# - $formkit: text
|
||||
# name: left_sidebar_sticky
|
||||
# label: 左侧边栏悬浮
|
||||
# type: radio
|
||||
# value: bottom
|
||||
# options:
|
||||
# - value: top
|
||||
# label: 固定顶部
|
||||
# - value: bottom
|
||||
# label: 固定底部
|
||||
# - value: none
|
||||
# label: 不悬浮
|
||||
# - $formkit: text
|
||||
# name: right_sidebar_sticky
|
||||
# label: 右侧边栏悬浮
|
||||
# type: radio
|
||||
# value: top
|
||||
# options:
|
||||
# - value: top
|
||||
# label: 固定顶部
|
||||
# - value: bottom
|
||||
# label: 固定底部
|
||||
# - value: none
|
||||
# label: 不悬浮
|
||||
- $formkit: radio
|
||||
name: left_sidebar_sticky
|
||||
label: 左侧边栏悬浮
|
||||
value: bottom
|
||||
options:
|
||||
- value: top
|
||||
label: 固定顶部
|
||||
- value: bottom
|
||||
label: 固定底部
|
||||
- value: none
|
||||
label: 不悬浮
|
||||
- $formkit: radio
|
||||
name: right_sidebar_sticky
|
||||
label: 右侧边栏悬浮
|
||||
value: top
|
||||
options:
|
||||
- value: top
|
||||
label: 固定顶部
|
||||
- value: bottom
|
||||
label: 固定底部
|
||||
- value: none
|
||||
label: 不悬浮
|
||||
- group: post
|
||||
label: '文章设置'
|
||||
formSchema:
|
||||
@ -235,186 +229,183 @@ spec:
|
||||
label: 默认文章缩略图
|
||||
placeholder: '请输入/选择图片路径'
|
||||
help: "如果文章没有指定缩略图,则默认显示当前缩略图。"
|
||||
# - $formkit: text
|
||||
# name: top_thumbnail_mode
|
||||
# label: 置顶文章列表缩略图模式
|
||||
# type: select
|
||||
# value: back
|
||||
# help: '置顶的文章在列表的缩略图模式,除网格布局外,如果文章元数据配置了thumbnail_mode项,则当前配置将被覆盖。注:设置网格布局后,非置顶文章也会变成网格布局。'
|
||||
# options:
|
||||
# - value: default
|
||||
# label: 默认模式
|
||||
# - value: back
|
||||
# label: 背景图模式
|
||||
# - value: small
|
||||
# label: 小图模式(左侧)
|
||||
# - value: small-right
|
||||
# label: 小图模式(右侧)
|
||||
# - value: small-alter
|
||||
# label: 小图模式(交替)
|
||||
# - value: fold
|
||||
# label: 折叠模式
|
||||
# - value: grid
|
||||
# label: 网格模式(强优先)
|
||||
# - $formkit: text
|
||||
# name: thumbnail_mode
|
||||
# label: 文章列表缩略图模式
|
||||
# type: select
|
||||
# value: default
|
||||
# help: '文章列表缩略图模式,除网格布局外,如果文章元数据配置了thumbnail_mode项,则当前配置将被覆盖。'
|
||||
# options:
|
||||
# - value: default
|
||||
# label: 默认模式
|
||||
# - value: back
|
||||
# label: 背景图模式
|
||||
# - value: small
|
||||
# label: 小图模式(左侧)
|
||||
# - value: small-right
|
||||
# label: 小图模式(右侧)
|
||||
# - value: small-alter
|
||||
# label: 小图模式(交替)
|
||||
# - value: grid
|
||||
# label: 网格模式(强优先)
|
||||
# - $formkit: text
|
||||
# name: code_pretty
|
||||
# label: 代码块高亮主题
|
||||
# type: select
|
||||
# value: atom-one-light
|
||||
# options:
|
||||
# - value: a11y-dark
|
||||
# label: A11y Dark
|
||||
# - value: a11y-light
|
||||
# label: A11y Light
|
||||
# - value: agate
|
||||
# label: Agate
|
||||
# - value: an-old-hope
|
||||
# label: An Old Hope
|
||||
# - value: androidstudio
|
||||
# label: Androidstudio
|
||||
# - value: arduino-light
|
||||
# label: Arduino Light
|
||||
# - value: arta
|
||||
# label: Arta
|
||||
# - value: ascetic
|
||||
# label: Ascetic
|
||||
# - value: atom-one-dark
|
||||
# label: Atom One Dark
|
||||
# - value: atom-one-dark-reasonable
|
||||
# label: Atom One Dark Reasonable
|
||||
# - value: atom-one-light
|
||||
# label: Atom One Light
|
||||
# - value: brown-paper
|
||||
# label: Brown Paper
|
||||
# - value: brown-papersq
|
||||
# label: Brown Papersq
|
||||
# - value: codepen-embed
|
||||
# label: Codepen Embed
|
||||
# - value: color-brewer
|
||||
# label: Color Brewer
|
||||
# - value: dark
|
||||
# label: Dark
|
||||
# - value: default
|
||||
# label: Default
|
||||
# - value: devibeans
|
||||
# label: Devibeans
|
||||
# - value: docco
|
||||
# label: Docco
|
||||
# - value: far
|
||||
# label: Far
|
||||
# - value: foundation
|
||||
# label: Foundation
|
||||
# - value: github-dark-dimmed
|
||||
# label: Github Dark Dimmed
|
||||
# - value: github-dark
|
||||
# label: Github Dark
|
||||
# - value: github
|
||||
# label: Github
|
||||
# - value: gml
|
||||
# label: Gml
|
||||
# - value: googlecode
|
||||
# label: Googlecode
|
||||
# - value: gradient-dark
|
||||
# label: Gradient Dark
|
||||
# - value: gradient-light
|
||||
# label: Gradient Light
|
||||
# - value: grayscale
|
||||
# label: Grayscale
|
||||
# - value: hybrid
|
||||
# label: Hybrid
|
||||
# - value: idea
|
||||
# label: Idea
|
||||
# - value: ir-black
|
||||
# label: Ir Black
|
||||
# - value: isbl-editor-dark
|
||||
# label: Isbl Editor Dark
|
||||
# - value: isbl-editor-light
|
||||
# label: Isbl Editor Light
|
||||
# - value: kimbie-dark
|
||||
# label: Kimbie Dark
|
||||
# - value: kimbie-light
|
||||
# label: Kimbie Light
|
||||
# - value: lightfair
|
||||
# label: Lightfair
|
||||
# - value: lioshi
|
||||
# label: Lioshi
|
||||
# - value: magula
|
||||
# label: Magula
|
||||
# - value: mono-blue
|
||||
# label: Mono Blue
|
||||
# - value: monokai-sublime
|
||||
# label: Monokai Sublime
|
||||
# - value: monokai
|
||||
# label: Monokai
|
||||
# - value: night-owl
|
||||
# label: Night Owl
|
||||
# - value: nnfx-dark
|
||||
# label: Nnfx dark
|
||||
# - value: nnfx-light
|
||||
# label: Nnfx Light
|
||||
# - value: nord
|
||||
# label: Nord
|
||||
# - value: obsidian
|
||||
# label: Obsidian
|
||||
# - value: paraiso-dark
|
||||
# label: Paraiso Dark
|
||||
# - value: paraiso-light
|
||||
# label: Paraiso Light
|
||||
# - value: pojoaque
|
||||
# label: Pojoaque
|
||||
# - value: purebasic
|
||||
# label: Purebasic
|
||||
# - value: qtcreator-dark
|
||||
# label: Qtcreator Dark
|
||||
# - value: qtcreator-light
|
||||
# label: Qtcreator Light
|
||||
# - value: rainbow
|
||||
# label: Rainbow
|
||||
# - value: routeros
|
||||
# label: Routeros
|
||||
# - value: school-book
|
||||
# label: School Book
|
||||
# - value: shades-of-purple
|
||||
# label: Shades Of Purple
|
||||
# - value: srcery
|
||||
# label: Srcery
|
||||
# - value: stackoverflow-dark
|
||||
# label: Stackoverflow Dark
|
||||
# - value: stackoverflow-light
|
||||
# label: Stackoverflow Light
|
||||
# - value: sunburst
|
||||
# label: Sunburst
|
||||
# - value: tomorrow-night-blue
|
||||
# label: Tomorrow Night Blue
|
||||
# - value: tomorrow-night-bright
|
||||
# label: Tomorrow Night Bright
|
||||
# - value: vs
|
||||
# label: Vs
|
||||
# - value: vs2015
|
||||
# label: Vs 2015
|
||||
# - value: xcode
|
||||
# label: Xcode
|
||||
# - value: xt256
|
||||
# label: Xt 256
|
||||
- $formkit: select
|
||||
name: top_thumbnail_mode
|
||||
label: 置顶文章列表缩略图模式
|
||||
value: back
|
||||
help: '置顶的文章在列表的缩略图模式,除网格布局外,如果文章元数据配置了thumbnail_mode项,则当前配置将被覆盖。注:设置网格布局后,非置顶文章也会变成网格布局。'
|
||||
options:
|
||||
- value: default
|
||||
label: 默认模式
|
||||
- value: back
|
||||
label: 背景图模式
|
||||
- value: small
|
||||
label: 小图模式(左侧)
|
||||
- value: small-right
|
||||
label: 小图模式(右侧)
|
||||
- value: small-alter
|
||||
label: 小图模式(交替)
|
||||
- value: fold
|
||||
label: 折叠模式
|
||||
- value: grid
|
||||
label: 网格模式(强优先)
|
||||
- $formkit: select
|
||||
name: thumbnail_mode
|
||||
label: 文章列表缩略图模式
|
||||
value: default
|
||||
help: '文章列表缩略图模式,除网格布局外,如果文章元数据配置了thumbnail_mode项,则当前配置将被覆盖。'
|
||||
options:
|
||||
- value: default
|
||||
label: 默认模式
|
||||
- value: back
|
||||
label: 背景图模式
|
||||
- value: small
|
||||
label: 小图模式(左侧)
|
||||
- value: small-right
|
||||
label: 小图模式(右侧)
|
||||
- value: small-alter
|
||||
label: 小图模式(交替)
|
||||
- value: grid
|
||||
label: 网格模式(强优先)
|
||||
- $formkit: select
|
||||
name: code_pretty
|
||||
label: 代码块高亮主题
|
||||
value: atom-one-light
|
||||
options:
|
||||
- value: a11y-dark
|
||||
label: A11y Dark
|
||||
- value: a11y-light
|
||||
label: A11y Light
|
||||
- value: agate
|
||||
label: Agate
|
||||
- value: an-old-hope
|
||||
label: An Old Hope
|
||||
- value: androidstudio
|
||||
label: Androidstudio
|
||||
- value: arduino-light
|
||||
label: Arduino Light
|
||||
- value: arta
|
||||
label: Arta
|
||||
- value: ascetic
|
||||
label: Ascetic
|
||||
- value: atom-one-dark
|
||||
label: Atom One Dark
|
||||
- value: atom-one-dark-reasonable
|
||||
label: Atom One Dark Reasonable
|
||||
- value: atom-one-light
|
||||
label: Atom One Light
|
||||
- value: brown-paper
|
||||
label: Brown Paper
|
||||
- value: brown-papersq
|
||||
label: Brown Papersq
|
||||
- value: codepen-embed
|
||||
label: Codepen Embed
|
||||
- value: color-brewer
|
||||
label: Color Brewer
|
||||
- value: dark
|
||||
label: Dark
|
||||
- value: default
|
||||
label: Default
|
||||
- value: devibeans
|
||||
label: Devibeans
|
||||
- value: docco
|
||||
label: Docco
|
||||
- value: far
|
||||
label: Far
|
||||
- value: foundation
|
||||
label: Foundation
|
||||
- value: github-dark-dimmed
|
||||
label: Github Dark Dimmed
|
||||
- value: github-dark
|
||||
label: Github Dark
|
||||
- value: github
|
||||
label: Github
|
||||
- value: gml
|
||||
label: Gml
|
||||
- value: googlecode
|
||||
label: Googlecode
|
||||
- value: gradient-dark
|
||||
label: Gradient Dark
|
||||
- value: gradient-light
|
||||
label: Gradient Light
|
||||
- value: grayscale
|
||||
label: Grayscale
|
||||
- value: hybrid
|
||||
label: Hybrid
|
||||
- value: idea
|
||||
label: Idea
|
||||
- value: ir-black
|
||||
label: Ir Black
|
||||
- value: isbl-editor-dark
|
||||
label: Isbl Editor Dark
|
||||
- value: isbl-editor-light
|
||||
label: Isbl Editor Light
|
||||
- value: kimbie-dark
|
||||
label: Kimbie Dark
|
||||
- value: kimbie-light
|
||||
label: Kimbie Light
|
||||
- value: lightfair
|
||||
label: Lightfair
|
||||
- value: lioshi
|
||||
label: Lioshi
|
||||
- value: magula
|
||||
label: Magula
|
||||
- value: mono-blue
|
||||
label: Mono Blue
|
||||
- value: monokai-sublime
|
||||
label: Monokai Sublime
|
||||
- value: monokai
|
||||
label: Monokai
|
||||
- value: night-owl
|
||||
label: Night Owl
|
||||
- value: nnfx-dark
|
||||
label: Nnfx dark
|
||||
- value: nnfx-light
|
||||
label: Nnfx Light
|
||||
- value: nord
|
||||
label: Nord
|
||||
- value: obsidian
|
||||
label: Obsidian
|
||||
- value: paraiso-dark
|
||||
label: Paraiso Dark
|
||||
- value: paraiso-light
|
||||
label: Paraiso Light
|
||||
- value: pojoaque
|
||||
label: Pojoaque
|
||||
- value: purebasic
|
||||
label: Purebasic
|
||||
- value: qtcreator-dark
|
||||
label: Qtcreator Dark
|
||||
- value: qtcreator-light
|
||||
label: Qtcreator Light
|
||||
- value: rainbow
|
||||
label: Rainbow
|
||||
- value: routeros
|
||||
label: Routeros
|
||||
- value: school-book
|
||||
label: School Book
|
||||
- value: shades-of-purple
|
||||
label: Shades Of Purple
|
||||
- value: srcery
|
||||
label: Srcery
|
||||
- value: stackoverflow-dark
|
||||
label: Stackoverflow Dark
|
||||
- value: stackoverflow-light
|
||||
label: Stackoverflow Light
|
||||
- value: sunburst
|
||||
label: Sunburst
|
||||
- value: tomorrow-night-blue
|
||||
label: Tomorrow Night Blue
|
||||
- value: tomorrow-night-bright
|
||||
label: Tomorrow Night Bright
|
||||
- value: vs
|
||||
label: Vs
|
||||
- value: vs2015
|
||||
label: Vs 2015
|
||||
- value: xcode
|
||||
label: Xcode
|
||||
- value: xt256
|
||||
label: Xt 256
|
||||
- $formkit: text
|
||||
name: code_fold_line
|
||||
label: 代码块折叠
|
||||
@ -425,48 +416,42 @@ spec:
|
||||
label: 正文长图折叠
|
||||
placeholder: '请输入高度数值(px)'
|
||||
help: '图片高度超出指定高度(px)后默认进行折叠,指定的高度需大于等于 400px。'
|
||||
# - $formkit: text
|
||||
# name: invalid_tips_day
|
||||
# label: 文章失效提示
|
||||
# value: 99999999
|
||||
# placeholder: '请输入时间(天)'
|
||||
# help: '文章超过指定天数未进行更新,展示文章或图片可能失效的温馨提示。'
|
||||
# - $formkit: text
|
||||
# name: enable_katex
|
||||
# label: KaTeX 公式支持
|
||||
# type: radio
|
||||
# data-type: bool
|
||||
# value: false
|
||||
# help: '博客通过 KaTeX 做数学公式渲染,如果文章或页面元数据配置了enable_katex项,则当前配置将被覆盖。'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 默认开启
|
||||
# - value: false
|
||||
# label: 默认关闭
|
||||
# - $formkit: text
|
||||
# name: enable_copyright
|
||||
# label: 开启文章版权声明
|
||||
# type: radio
|
||||
# data-type: bool
|
||||
# value: true
|
||||
# help: '如果文章或页面元数据配置了enable_copyright项,则当前配置将被覆盖。'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 默认开启
|
||||
# - value: false
|
||||
# label: 默认关闭
|
||||
# - $formkit: text
|
||||
# name: enable_post_share
|
||||
# label: 开启文章分享
|
||||
# type: radio
|
||||
# data-type: bool
|
||||
# value: true
|
||||
# help: '如果文章或页面元数据配置了enable_share项,则当前配置将被覆盖。'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 默认开启
|
||||
# - value: false
|
||||
# label: 默认关闭
|
||||
- $formkit: text
|
||||
name: invalid_tips_day
|
||||
label: 文章失效提示
|
||||
value: 99999999
|
||||
placeholder: '请输入时间(天)'
|
||||
help: '文章超过指定天数未进行更新,展示文章或图片可能失效的温馨提示。'
|
||||
- $formkit: radio
|
||||
name: enable_katex
|
||||
label: KaTeX 公式支持
|
||||
value: false
|
||||
help: '博客通过 KaTeX 做数学公式渲染,如果文章或页面元数据配置了enable_katex项,则当前配置将被覆盖。'
|
||||
options:
|
||||
- value: true
|
||||
label: 默认开启
|
||||
- value: false
|
||||
label: 默认关闭
|
||||
- $formkit: radio
|
||||
name: enable_copyright
|
||||
label: 开启文章版权声明
|
||||
value: true
|
||||
help: '如果文章或页面元数据配置了enable_copyright项,则当前配置将被覆盖。'
|
||||
options:
|
||||
- value: true
|
||||
label: 默认开启
|
||||
- value: false
|
||||
label: 默认关闭
|
||||
- $formkit: radio
|
||||
name: enable_post_share
|
||||
label: 开启文章分享
|
||||
value: true
|
||||
help: '如果文章或页面元数据配置了enable_share项,则当前配置将被覆盖。'
|
||||
options:
|
||||
- value: true
|
||||
label: 默认开启
|
||||
- value: false
|
||||
label: 默认关闭
|
||||
- $formkit: attachment
|
||||
name: donate_alipay
|
||||
label: 支付宝捐赠二维码
|
||||
@ -1221,11 +1206,10 @@ spec:
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: journals_share_image
|
||||
# label: 日志页面-日志分享背景图
|
||||
# type: attachment
|
||||
# placeholder: '请输入/选择图片路径'
|
||||
- $formkit: attachment
|
||||
name: journals_share_image
|
||||
label: 日志页面-日志分享背景图
|
||||
placeholder: '请输入/选择图片路径'
|
||||
# - $formkit: text
|
||||
# name: enable_tags_tag_color
|
||||
# label: 标签页面-开启标签颜色
|
||||
@ -1399,55 +1383,52 @@ spec:
|
||||
# label: 显示
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
#enhance:
|
||||
# label: 增强功能
|
||||
# items:
|
||||
# - $formkit: text
|
||||
# name: cursor_style
|
||||
# label: 鼠标风格
|
||||
# type: select
|
||||
# value: none
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 关闭
|
||||
# - value: breeze
|
||||
# label: 清风(深色)
|
||||
# - $formkit: text
|
||||
# name: cursor_move
|
||||
# label: 鼠标移动特效
|
||||
# type: select
|
||||
# value: none
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 关闭
|
||||
# - value: bubbleCursor
|
||||
# label: 气泡跟随
|
||||
# - value: emojiCursor
|
||||
# label: 表情包跟随
|
||||
# - value: springyEmojiCursor
|
||||
# label: 弹性表情包跟随
|
||||
# - value: fairyDustCursor
|
||||
# label: 仙女棒效果
|
||||
# - value: snowflakeCursor
|
||||
# label: 雪花跟随
|
||||
# - value: followingDotCursor
|
||||
# label: 圆点跟随
|
||||
# - value: ghostCursor
|
||||
# label: 移动残影(疏)
|
||||
# - value: trailingCursor
|
||||
# label: 移动残影(密)
|
||||
# - $formkit: text
|
||||
# name: cursor_click
|
||||
# label: 鼠标点击特效
|
||||
# type: select
|
||||
# value: none
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 关闭
|
||||
# - value: firework
|
||||
# label: 烟花特效
|
||||
# - value: granule
|
||||
# label: 粒子爆炸
|
||||
- group: enhance
|
||||
label: '增强功能'
|
||||
formSchema:
|
||||
- $formkit: select
|
||||
name: cursor_style
|
||||
label: 鼠标风格
|
||||
value: none
|
||||
options:
|
||||
- value: none
|
||||
label: 关闭
|
||||
- value: breeze
|
||||
label: 清风(深色)
|
||||
- $formkit: select
|
||||
name: cursor_move
|
||||
label: 鼠标移动特效
|
||||
value: none
|
||||
options:
|
||||
- value: none
|
||||
label: 关闭
|
||||
- value: bubbleCursor
|
||||
label: 气泡跟随
|
||||
- value: emojiCursor
|
||||
label: 表情包跟随
|
||||
- value: springyEmojiCursor
|
||||
label: 弹性表情包跟随
|
||||
- value: fairyDustCursor
|
||||
label: 仙女棒效果
|
||||
- value: snowflakeCursor
|
||||
label: 雪花跟随
|
||||
- value: followingDotCursor
|
||||
label: 圆点跟随
|
||||
- value: ghostCursor
|
||||
label: 移动残影(疏)
|
||||
- value: trailingCursor
|
||||
label: 移动残影(密)
|
||||
- $formkit: select
|
||||
name: cursor_click
|
||||
label: 鼠标点击特效
|
||||
value: none
|
||||
options:
|
||||
- value: none
|
||||
label: 关闭
|
||||
- value: firework
|
||||
label: 烟花特效
|
||||
- value: granule
|
||||
label: 粒子爆炸
|
||||
# - $formkit: text
|
||||
# name: enable_sw
|
||||
# label: "启用 Service Worker 优化"
|
||||
@ -1464,130 +1445,102 @@ spec:
|
||||
# label: 开启全站离线
|
||||
# - value: "uninstall"
|
||||
# label: 卸载
|
||||
# - $formkit: text
|
||||
# name: enable_compress
|
||||
# label: "启用 HTML 压缩"
|
||||
# type: radio
|
||||
# data-type: text
|
||||
# value: format
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 关闭
|
||||
# - value: format
|
||||
# label: 压缩空格
|
||||
# - value: single
|
||||
# label: 完全格式压缩
|
||||
# - $formkit: text
|
||||
# name: effects_sakura_mode
|
||||
# label: 樱花飘落特效显示模式
|
||||
# type: radio
|
||||
# value: day
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 不显示
|
||||
# - value: day
|
||||
# label: 明亮模式
|
||||
# - value: night
|
||||
# label: 黑暗模式
|
||||
# - value: all
|
||||
# label: 全模式
|
||||
# - $formkit: text
|
||||
# name: effects_universe_mode
|
||||
# label: 宇宙星空特效显示模式
|
||||
# type: radio
|
||||
# value: night
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 不显示
|
||||
# - value: day
|
||||
# label: 明亮模式
|
||||
# - value: night
|
||||
# label: 黑暗模式
|
||||
# - value: all
|
||||
# label: 全模式
|
||||
# - $formkit: text
|
||||
# name: effects_circle_magic_mode
|
||||
# label: 上升圆点特效显示模式
|
||||
# type: radio
|
||||
# value: night
|
||||
# options:
|
||||
# - value: none
|
||||
# label: 不显示
|
||||
# - value: day
|
||||
# label: 明亮模式
|
||||
# - value: night
|
||||
# label: 黑暗模式
|
||||
# - value: all
|
||||
# label: 全模式
|
||||
# - $formkit: text
|
||||
# name: enable_gray_mode
|
||||
# label: 灰色模式
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: false
|
||||
# help: '向英雄致敬,愿精神长存!'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: enable_patch
|
||||
# label: 补丁模式
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: true
|
||||
# help: '引入补丁脚本,实现对部分异常不更新主题进行 bug 修复!'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: enable_busuanzi
|
||||
# label: 开启 busuanzi 访客统计
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: true
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: enable_baidu_push
|
||||
# label: 启用百度 URL 自动推送
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: false
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: enable_toutiao_push
|
||||
# label: 启用头条搜索自动推送
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: false
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
# - $formkit: text
|
||||
# name: enable_debug
|
||||
# label: 开启 DEBUG 日志
|
||||
# type: switch
|
||||
# data-type: bool
|
||||
# value: false
|
||||
# help: '开发和问题排查时开启日志。'
|
||||
# options:
|
||||
# - value: true
|
||||
# label: 开启
|
||||
# - value: false
|
||||
# label: 关闭
|
||||
- $formkit: radio
|
||||
name: effects_sakura_mode
|
||||
label: 樱花飘落特效显示模式
|
||||
value: day
|
||||
options:
|
||||
- value: none
|
||||
label: 不显示
|
||||
- value: day
|
||||
label: 明亮模式
|
||||
- value: night
|
||||
label: 黑暗模式
|
||||
- value: all
|
||||
label: 全模式
|
||||
- $formkit: radio
|
||||
name: effects_universe_mode
|
||||
label: 宇宙星空特效显示模式
|
||||
value: night
|
||||
options:
|
||||
- value: none
|
||||
label: 不显示
|
||||
- value: day
|
||||
label: 明亮模式
|
||||
- value: night
|
||||
label: 黑暗模式
|
||||
- value: all
|
||||
label: 全模式
|
||||
- $formkit: radio
|
||||
name: effects_circle_magic_mode
|
||||
label: 上升圆点特效显示模式
|
||||
value: night
|
||||
options:
|
||||
- value: none
|
||||
label: 不显示
|
||||
- value: day
|
||||
label: 明亮模式
|
||||
- value: night
|
||||
label: 黑暗模式
|
||||
- value: all
|
||||
label: 全模式
|
||||
- $formkit: radio
|
||||
name: enable_gray_mode
|
||||
label: 灰色模式
|
||||
value: false
|
||||
help: '向英雄致敬,愿精神长存!'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: enable_patch
|
||||
label: 补丁模式
|
||||
value: true
|
||||
help: '引入补丁脚本,实现对部分异常不更新主题进行 bug 修复!'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: enable_busuanzi
|
||||
label: 开启 busuanzi 访客统计
|
||||
value: true
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: enable_baidu_push
|
||||
label: 启用百度 URL 自动推送
|
||||
value: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: enable_toutiao_push
|
||||
label: 启用头条搜索自动推送
|
||||
value: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: enable_debug
|
||||
label: 开启 DEBUG 日志
|
||||
value: false
|
||||
help: '开发和问题排查时开启日志。'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
- group: custom
|
||||
label: '定制主题'
|
||||
formSchema:
|
||||
|
@ -45,23 +45,21 @@
|
||||
<!-- </#if>-->
|
||||
<!--</#if>-->
|
||||
|
||||
<!--<link rel="stylesheet" th:href="@{/assets/css/mew-custom.min.css(mew=${theme.spec.version})}">-->
|
||||
<link rel="stylesheet" th:href="@{/assets/css/mew-custom.min.css(mew=${theme.spec.version})}">
|
||||
<!--<#if is_post?? || is_sheet?? || is_photos?? || is_journals??>-->
|
||||
<!-- <link data-pjax rel="stylesheet" th:href="@{/assets/lib/fancybox@5.3.7/jquery.fancybox.min.css}>-->
|
||||
<!--</#if>-->
|
||||
<!--<link rel="stylesheet" th:href="@{/assets/lib/qmsg/qmsg.min.css">-->
|
||||
<link rel="stylesheet" th:href="@{/assets/lib/qmsg/qmsg.min.css}">
|
||||
|
||||
<!--<#if settings.cursor_style?? && settings.cursor_style!='none'>-->
|
||||
<!-- <link rel="stylesheet" th:href="@{/assets/css/cursor/${settings.cursor_style}.min.css(mew=${theme.spec.version})}">-->
|
||||
<!--</#if>-->
|
||||
|
||||
<!--<#include "config.ftl">-->
|
||||
<!--<#include "config.html">-->
|
||||
|
||||
<!--<script src="@{/assets/lib/jquery@3.5.1/jquery.min.js}"></script>-->
|
||||
<script src="@{/assets/lib/jquery@3.5.1/jquery.min.js}"></script>
|
||||
|
||||
<!--<#if settings.enable_patch!true>-->
|
||||
<!-- <script src="//cdn.jsdelivr.net/gh/nineya/halo-theme-dream@master/src/patch.js"></script>-->
|
||||
<!--</#if>-->
|
||||
<script th:if="${theme.config.enhance.enable_patch}" src="//cdn.jsdelivr.net/gh/nineya/halo-theme-dream@master/src/patch.js"></script>
|
||||
<!--<#if settings.external_css?? && settings.external_css!=''>-->
|
||||
<!-- <link rel="stylesheet" th:href="${settings.external_css!}">-->
|
||||
<!--</#if>-->
|
||||
|
@ -6,15 +6,13 @@
|
||||
<div class="column-main">
|
||||
<th:block th:replace="${content}"/>
|
||||
</div>
|
||||
<#include "templates/common/scripts.html">
|
||||
<th:block th:replace="~{common/scripts}"/>
|
||||
</body>
|
||||
</th:block>
|
||||
<th:block th:if="${#strings.equals('',param._pjax)}">
|
||||
<th:block th:replace="~{common/head :: head}"/>
|
||||
<body>
|
||||
<!-- <#include "templates/common/widget.ftl">-->
|
||||
<!-- <#import "templates/common/navbar.ftl" as nav>-->
|
||||
<!-- <@nav.navbar/>-->
|
||||
<th:block th:replace="~{common/navbar}"/>
|
||||
<th:block th:if="${theme.config.basic_style.enable_banner}">
|
||||
<th:block th:replace="~{common/banner :: banner}"/>
|
||||
</th:block>
|
||||
@ -24,18 +22,19 @@
|
||||
<div class="column column-main">
|
||||
<th:block th:insert="${content}"/>
|
||||
</div>
|
||||
<!-- <#if !settings.sidebar_column?? || (settings.sidebar_column!='only-right' && settings.sidebar_column!='module-left')>-->
|
||||
<!-- <@widget 'left' />-->
|
||||
<!-- </#if>-->
|
||||
<!-- <#if !settings.sidebar_column?? || (settings.sidebar_column!='only-left' && settings.sidebar_column!='module-right')>-->
|
||||
<!-- <@widget 'right' />-->
|
||||
<!-- </#if>-->
|
||||
<th:block th:insert="${content}"/>
|
||||
<th:block th:if="${theme.config.basic_style.sidebar_column!='only-right' && theme.config.basic_style.sidebar_column!='module-left'}">
|
||||
<th:block th:replace="~{common/widget :: widget('left')}"/>
|
||||
</th:block>
|
||||
<th:block th:if="${theme.config.basic_style.sidebar_column!='only-left' && theme.config.basic_style.sidebar_column!='module-right'}">
|
||||
<th:block th:replace="~{common/widget :: widget('right')}"/>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<th:block th:replace="~{common/actions}"/>
|
||||
<!-- <#include "templates/common/footer.ftl">-->
|
||||
<!-- <#include "templates/common/scripts.html">-->
|
||||
<th:block th:replace="~{common/footer}"/>
|
||||
<th:block th:replace="~{common/scripts}"/>
|
||||
</body>
|
||||
</th:block>
|
||||
</html>
|
@ -1,210 +0,0 @@
|
||||
<#macro navbar>
|
||||
<header class="navbar">
|
||||
<div class="navbar-above">
|
||||
<div class="container<#if settings.sidebar_column?? && settings.sidebar_column!='all'> two-column</#if>">
|
||||
<i class="fa fa-bars navbar-slideicon"></i>
|
||||
<a class="navbar-item logo-title" href="${context!}">
|
||||
<#if blog_logo?? && blog_logo!=''>
|
||||
<img class="logo-img" src="${blog_logo!}" alt="${blog_title!}" height="28">
|
||||
<img class="logo-img-dark" src="${settings.night_logo!blog_logo!}" alt="${blog_title!}" height="28">
|
||||
<#else>
|
||||
${blog_title!}
|
||||
</#if>
|
||||
</a>
|
||||
<nav class="navbar-nav active-animate">
|
||||
<@menuTag method="tree">
|
||||
<#list menus?sort_by('priority') as menu>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<#if menu.name?default('')?starts_with('#hide') != true>
|
||||
<div class="item-dropdown" trigger="hover" placement="60px">
|
||||
<div class="item-dropdown-link">
|
||||
<#if menu.url!='#'>
|
||||
<a class="item" href="${menu.url!}" target="${menu.target!}" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>
|
||||
<#else>
|
||||
<a class="item" style="cursor:default;" href="javascript:" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>
|
||||
</#if>
|
||||
<i class="fa fa-angle-down item-dropdown-link-icon" style="color:var(--main)"></i>
|
||||
</div>
|
||||
<nav class="item-dropdown-menu">
|
||||
<#list menu.children?sort_by('priority') as child>
|
||||
<#if child.children?? && child.children?size gt 0>
|
||||
<#if child.name?default('')?starts_with('#hide') != true>
|
||||
<li class="item-sub-li">
|
||||
<a class="item" href="${child.url!}" target="${child.target!}" title="${child.name!}"><#if child.icon?? && child.icon!=''><i class="m-icon ${child.icon}"></i></#if>${child.name!}</a>
|
||||
<ol class="item-sub">
|
||||
<#list child.children?sort_by('priority') as child1>
|
||||
<#if child1.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<a class="item" href="${child1.url!}" target="${child1.target!}" title="${child1.name!}"><#if child1.icon?? && child1.icon!=''><i class="m-icon ${child1.icon}"></i></#if>${child1.name!}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ol>
|
||||
</li>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if child.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<a class="item" href="${child.url!}"
|
||||
target="${child.target!}" title="${child.name!}"><#if child.icon?? && child.icon!=''><i class="m-icon ${child.icon}"></i></#if>${child.name!}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</nav>
|
||||
</div>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if menu.name?default('')?starts_with('#hide') != true>
|
||||
<a class="item" href="${menu.url!}" target="${menu.target!}" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</@menuTag>
|
||||
</nav>
|
||||
<form data-pjax class="navbar-search" method="get" action="/search">
|
||||
<input maxlength="16" autocomplete="off" placeholder="搜索内容..." name="keyword" value class="input" type="text">
|
||||
<button type="submit" class="submit" aria-label="搜索按钮"><i class="fa fa-search"></i></button>
|
||||
<span class="icon"></span>
|
||||
<@postTag method="latest" top="5">
|
||||
<nav class="result">
|
||||
<#list posts as post>
|
||||
<a href="${post.fullPath!}" title="${post.title!}" class="item">
|
||||
<span class="sort">${post_index+1}</span>
|
||||
<span class="text">${post.title!}</span>
|
||||
</a>
|
||||
</#list>
|
||||
</nav>
|
||||
</@postTag>
|
||||
</form>
|
||||
<i class="fa fa-search navbar-searchicon"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#-- mobile菜单 -->
|
||||
<div class="navbar-slideout">
|
||||
<div class="navbar-slideout-wrap">
|
||||
<div class="navbar-slideout-author">
|
||||
<img width="50" height="50" src="${user.avatar!}" class="avatar" alt="${user.nickname!}"/>
|
||||
<div class="info">
|
||||
<a class="link" target="_blank" rel="noopener noreferrer nofollow">${user.nickname!}</a>
|
||||
<p class="motto">${user.description!'一句话介绍自己吧!'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="navbar-slideout-menu">
|
||||
<li class="item">
|
||||
<i class="fa fa-pencil-square-o"></i>
|
||||
<@postTag method="count"><span>累计撰写 <strong>${count!"0"}</strong> 篇文章</span></@postTag>
|
||||
</li>
|
||||
<li class="item">
|
||||
<i class="fa fa-tags"></i>
|
||||
<@tagTag method="count"><span>累计创建 <strong>${count!"0"}</strong> 个标签</span></@tagTag>
|
||||
</li>
|
||||
<li class="item">
|
||||
<i class="fa fa-commenting-o"></i>
|
||||
<@commentTag method="count"><span>累计收到 <strong>${count!"0"}</strong> 条评论</span></@commentTag>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-slideout-menu not-toc">
|
||||
<li>
|
||||
<a class="link panel" href="#" rel="nofollow">
|
||||
<span>导航</span>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
<ul class="slides panel-body panel-side-menu">
|
||||
<@menuTag method="tree">
|
||||
<#list menus?sort_by('priority') as menu>
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<#if menu.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<div class="link panel">
|
||||
<a href="${menu.url!}" title="${menu.name!}">${menu.name!}</a>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</div>
|
||||
<ul class="slides panel-body">
|
||||
<#if menu.children?? && menu.children?size gt 0>
|
||||
<#list menu.children?sort_by('priority') as child>
|
||||
<#if child.children?? && child.children?size gt 0>
|
||||
<#if child.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<div class="link panel">
|
||||
<a href="${child.url!}" title="${child.name!}">${child.name!}</a>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</div>
|
||||
<ul class="slides panel-body">
|
||||
<#list child.children?sort_by('priority') as child1>
|
||||
<#if child1.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<a class="link" href="${child1.url!}" title="${child1.name!}">${child1.name!}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#list>
|
||||
</ul>
|
||||
</li>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if child.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<a class="link" href="${child.url!}" title="${child.name!}">${child.name!}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
</ul>
|
||||
</li>
|
||||
</#if>
|
||||
<#else>
|
||||
<#if menu.name?default('')?starts_with('#hide') != true>
|
||||
<li>
|
||||
<a class="link" href="${menu.url!}" title="${menu.name!}">${menu.name!}</a>
|
||||
</li>
|
||||
</#if>
|
||||
</#if>
|
||||
</#list>
|
||||
</@menuTag>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<#if settings.drawer_toc!true>
|
||||
<ul class="navbar-slideout-menu is-toc">
|
||||
<a class="link in" href="#" rel="nofollow"><span>目录</span></a>
|
||||
<div class="toc-content">
|
||||
</div>
|
||||
</ul>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#-- mobile搜索 -->
|
||||
<div class="navbar-searchout">
|
||||
<div class="search-container">
|
||||
<div class="navbar-searchout-inner">
|
||||
<form data-pjax class="navbar-search-mobile" method="get" action="/search">
|
||||
<input maxlength="16" autocomplete="off" placeholder="请输入关键字..." name="keyword" value class="input" type="text"/>
|
||||
<button type="submit" class="submit">搜索</button>
|
||||
</form>
|
||||
<@tagTag method="list">
|
||||
<#if tags?size gt 0>
|
||||
<div class="tag-search">
|
||||
<i class="fa fa-bullseye"></i>标签搜索
|
||||
</div>
|
||||
<ul class="cloud">
|
||||
<#assign colors=["#F8D800", "#0396FF", "#EA5455", "#7367F0", "#32CCBC", "#F6416C", "#28C76F", "#9F44D3", "#F55555", "#736EFE", "#E96D71", "#DE4313", "#D939CD", "#4C83FF", "#F072B6", "#C346C2", "#5961F9", "#FD6585", "#465EFB", "#FFC600", "#FA742B", "#5151E5", "#BB4E75", "#FF52E5", "#49C628", "#00EAFF", "#F067B4", "#F067B4", "#ff9a9e", "#00f2fe", "#4facfe", "#f093fb", "#6fa3ef", "#bc99c4", "#46c47c", "#f9bb3c", "#e8583d", "#f68e5f"]>
|
||||
<#assign nextRandom = .now?string["HHmmssSSS"]?number>
|
||||
<#list tags as tag>
|
||||
<li class="item">
|
||||
<a style="background:${colors[nextRandom % colors?size]}" href="${tag.fullPath!}" title="${tag.name!}">${tag.name!}</a>
|
||||
</li>
|
||||
<#assign nextRandom = nextRandom * 10 % 38>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
</@tagTag>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="navbar-mask"></div>
|
||||
</header>
|
||||
</#macro>
|
179
templates/common/navbar.html
Normal file
179
templates/common/navbar.html
Normal file
@ -0,0 +1,179 @@
|
||||
<header class="navbar" xmlns:th="https://www.thymeleaf.org">
|
||||
<div class="navbar-above">
|
||||
<div class="container<#if settings.sidebar_column?? && settings.sidebar_column!='all'> two-column</#if>">
|
||||
<i class="fa fa-bars navbar-slideicon"></i>
|
||||
<a class="navbar-item logo-title" th:href="${site.url}">
|
||||
<th:block if="${site.logo != ''}">
|
||||
<img class="logo-img" th:src="${site.logo}" th:alt="${site.title}" height="28">
|
||||
<img class="logo-img-dark" th:src="${site.logo}" th:alt="${site.title}" height="28">
|
||||
</th:block>
|
||||
<th:block if="${site.logo == ''}" th:text="${site.title}"/>
|
||||
</a>
|
||||
<!-- <nav class="navbar-nav active-animate">-->
|
||||
<!-- <@menuTag method="tree">-->
|
||||
<!-- <#list menus?sort_by('priority') as menu>-->
|
||||
<!-- <#if menu.children?? && menu.children?size gt 0>-->
|
||||
<!-- <#if menu.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <div class="item-dropdown" trigger="hover" placement="60px">-->
|
||||
<!-- <div class="item-dropdown-link">-->
|
||||
<!-- <#if menu.url!='#'>-->
|
||||
<!-- <a class="item" href="${menu.url!}" target="${menu.target!}" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>-->
|
||||
<!-- <#else>-->
|
||||
<!-- <a class="item" style="cursor:default;" href="javascript:" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>-->
|
||||
<!-- </#if>-->
|
||||
<!-- <i class="fa fa-angle-down item-dropdown-link-icon" style="color:var(--main)"></i>-->
|
||||
<!-- </div>-->
|
||||
<!-- <nav class="item-dropdown-menu">-->
|
||||
<!-- <#list menu.children?sort_by('priority') as child>-->
|
||||
<!-- <#if child.children?? && child.children?size gt 0>-->
|
||||
<!-- <#if child.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li class="item-sub-li">-->
|
||||
<!-- <a class="item" href="${child.url!}" target="${child.target!}" title="${child.name!}"><#if child.icon?? && child.icon!=''><i class="m-icon ${child.icon}"></i></#if>${child.name!}</a>-->
|
||||
<!-- <ol class="item-sub">-->
|
||||
<!-- <#list child.children?sort_by('priority') as child1>-->
|
||||
<!-- <#if child1.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="item" href="${child1.url!}" target="${child1.target!}" title="${child1.name!}"><#if child1.icon?? && child1.icon!=''><i class="m-icon ${child1.icon}"></i></#if>${child1.name!}</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </ol>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- <#else>-->
|
||||
<!-- <#if child.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="item" href="${child.url!}"-->
|
||||
<!-- target="${child.target!}" title="${child.name!}"><#if child.icon?? && child.icon!=''><i class="m-icon ${child.icon}"></i></#if>${child.name!}</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </nav>-->
|
||||
<!-- </div>-->
|
||||
<!-- </#if>-->
|
||||
<!-- <#else>-->
|
||||
<!-- <#if menu.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <a class="item" href="${menu.url!}" target="${menu.target!}" title="${menu.name!}"><#if menu.icon?? && menu.icon!=''><i class="m-icon ${menu.icon}"></i></#if>${menu.name!}</a>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </@menuTag>-->
|
||||
<!-- </nav>-->
|
||||
|
||||
<!-- <form data-pjax class="navbar-search" method="get" action="/search">-->
|
||||
<!-- <input maxlength="16" autocomplete="off" placeholder="搜索内容..." name="keyword" value class="input" type="text">-->
|
||||
<!-- <button type="submit" class="submit" aria-label="搜索按钮"><i class="fa fa-search"></i></button>-->
|
||||
<!-- <span class="icon"></span>-->
|
||||
<!-- <@postTag method="latest" top="5">-->
|
||||
<!-- <nav class="result">-->
|
||||
<!-- <#list posts as post>-->
|
||||
<!-- <a href="${post.fullPath!}" title="${post.title!}" class="item">-->
|
||||
<!-- <span class="sort">${post_index+1}</span>-->
|
||||
<!-- <span class="text">${post.title!}</span>-->
|
||||
<!-- </a>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </nav>-->
|
||||
<!-- </@postTag>-->
|
||||
<!-- </form>-->
|
||||
<i th:if="${pluginFinder.available('PluginSearchWidget')}" class="fa fa-search navbar-searchicon" href="javascript:SearchWidget.open();"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <#-- mobile菜单 –>-->
|
||||
<!-- <div class="navbar-slideout">-->
|
||||
<!-- <div class="navbar-slideout-wrap">-->
|
||||
<!-- <div class="navbar-slideout-author">-->
|
||||
<!-- <img width="50" height="50" src="${user.avatar!}" class="avatar" alt="${user.nickname!}"/>-->
|
||||
<!-- <div class="info">-->
|
||||
<!-- <a class="link" target="_blank" rel="noopener noreferrer nofollow">${user.nickname!}</a>-->
|
||||
<!-- <p class="motto">${user.description!'一句话介绍自己吧!'}</p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ul class="navbar-slideout-menu">-->
|
||||
<!-- <li class="item">-->
|
||||
<!-- <i class="fa fa-pencil-square-o"></i>-->
|
||||
<!-- <@postTag method="count"><span>累计撰写 <strong>${count!"0"}</strong> 篇文章</span></@postTag>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="item">-->
|
||||
<!-- <i class="fa fa-tags"></i>-->
|
||||
<!-- <@tagTag method="count"><span>累计创建 <strong>${count!"0"}</strong> 个标签</span></@tagTag>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="item">-->
|
||||
<!-- <i class="fa fa-commenting-o"></i>-->
|
||||
<!-- <@commentTag method="count"><span>累计收到 <strong>${count!"0"}</strong> 条评论</span></@commentTag>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <ul class="navbar-slideout-menu not-toc">-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="link panel" href="#" rel="nofollow">-->
|
||||
<!-- <span>导航</span>-->
|
||||
<!-- <i class="fa fa-angle-right"></i>-->
|
||||
<!-- </a>-->
|
||||
<!-- <ul class="slides panel-body panel-side-menu">-->
|
||||
<!-- <@menuTag method="tree">-->
|
||||
<!-- <#list menus?sort_by('priority') as menu>-->
|
||||
<!-- <#if menu.children?? && menu.children?size gt 0>-->
|
||||
<!-- <#if menu.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <div class="link panel">-->
|
||||
<!-- <a href="${menu.url!}" title="${menu.name!}">${menu.name!}</a>-->
|
||||
<!-- <i class="fa fa-angle-right"></i>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ul class="slides panel-body">-->
|
||||
<!-- <#if menu.children?? && menu.children?size gt 0>-->
|
||||
<!-- <#list menu.children?sort_by('priority') as child>-->
|
||||
<!-- <#if child.children?? && child.children?size gt 0>-->
|
||||
<!-- <#if child.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <div class="link panel">-->
|
||||
<!-- <a href="${child.url!}" title="${child.name!}">${child.name!}</a>-->
|
||||
<!-- <i class="fa fa-angle-right"></i>-->
|
||||
<!-- </div>-->
|
||||
<!-- <ul class="slides panel-body">-->
|
||||
<!-- <#list child.children?sort_by('priority') as child1>-->
|
||||
<!-- <#if child1.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="link" href="${child1.url!}" title="${child1.name!}">${child1.name!}</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- <#else>-->
|
||||
<!-- <#if child.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="link" href="${child.url!}" title="${child.name!}">${child.name!}</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- <#else>-->
|
||||
<!-- <#if menu.name?default('')?starts_with('#hide') != true>-->
|
||||
<!-- <li>-->
|
||||
<!-- <a class="link" href="${menu.url!}" title="${menu.name!}">${menu.name!}</a>-->
|
||||
<!-- </li>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </#list>-->
|
||||
<!-- </@menuTag>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <#if settings.drawer_toc!true>-->
|
||||
<!-- <ul class="navbar-slideout-menu is-toc">-->
|
||||
<!-- <a class="link in" href="#" rel="nofollow"><span>目录</span></a>-->
|
||||
<!-- <div class="toc-content">-->
|
||||
<!-- </div>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </#if>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="navbar-mask"></div>
|
||||
</header>
|
@ -32,12 +32,12 @@
|
||||
<!-- options.comment_internal_plugin_js!'//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js')}"></script>-->
|
||||
<!--</#if>-->
|
||||
|
||||
<!--<script th:src="@{/assets/lib/jquery-pjax@2.0.1/jquery.pjax.min.js}"></script>-->
|
||||
<script th:src="@{/assets/lib/jquery-pjax@2.0.1/jquery.pjax.min.js}"></script>
|
||||
<!--<#if settings.load_progress?? && settings.load_progress != 'none'>-->
|
||||
<!-- <script th:src="@{/assets/js/dprogress.min.js(mew=${theme.spec.version})}"></script>-->
|
||||
<!--</#if>-->
|
||||
<!--<script th:src="@{/assets/js/pjax.min.js(mew=${theme.spec.version})}"></script>-->
|
||||
<!--<script async th:src="@{/assets/lib/qmsg/qmsg.min.js}"></script>-->
|
||||
<script th:src="@{/assets/js/pjax.min.js(mew=${theme.spec.version})}"></script>
|
||||
<script async th:src="@{/assets/lib/qmsg/qmsg.min.js}"></script>
|
||||
|
||||
<!--<#if post?? || is_photos?? || is_journals?? >-->
|
||||
<!-- <script data-pjax async th:src="@{/assets/lib/fancybox@5.3.7/jquery.fancybox.min.js}"></script>-->
|
||||
@ -48,7 +48,7 @@
|
||||
<!-- <script defer th:src="@{/assets/lib/aplayer@1.10.1/APlayer.min.js}"></script>-->
|
||||
<!-- <script defer th:src="@{/assets/lib/meting@2.0.1/Meting.min.js}"></script>-->
|
||||
<!--</#if>-->
|
||||
<!--<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js}"></script>-->
|
||||
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js}"></script>
|
||||
|
||||
<!--${settings.external_js_body!}-->
|
||||
<!--<#if settings.inline_js_body?? && settings.inline_js_body!=''>-->
|
||||
|
Loading…
x
Reference in New Issue
Block a user