mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
commit
9e50fbdffe
@ -162,7 +162,7 @@ spec:
|
|||||||
- $formkit: "text"
|
- $formkit: "text"
|
||||||
name: "icon"
|
name: "icon"
|
||||||
label: "图标"
|
label: "图标"
|
||||||
placeholder: '请输入菜单图标,支持RemixIcon'
|
placeholder: '请输入图标 class 内容'
|
||||||
- $formkit: "text"
|
- $formkit: "text"
|
||||||
name: "desc"
|
name: "desc"
|
||||||
label: "描述"
|
label: "描述"
|
||||||
|
@ -88,12 +88,6 @@ spec:
|
|||||||
value: true
|
value: true
|
||||||
- label: 隐藏
|
- label: 隐藏
|
||||||
value: false
|
value: false
|
||||||
- $formkit: text
|
|
||||||
label: 头像服务镜像地址
|
|
||||||
help: '用于替换头像服务镜像地址,无须输入结尾的"/"。'
|
|
||||||
name: providerMirror
|
|
||||||
value: "https://cravatar.cn"
|
|
||||||
validation: required
|
|
||||||
- group: basic_style
|
- group: basic_style
|
||||||
label: '基础样式'
|
label: '基础样式'
|
||||||
formSchema:
|
formSchema:
|
||||||
@ -922,6 +916,12 @@ spec:
|
|||||||
label: 侧边栏最近评论-展示评论数量
|
label: 侧边栏最近评论-展示评论数量
|
||||||
placeholder: 请输入数量数值
|
placeholder: 请输入数量数值
|
||||||
value: 5
|
value: 5
|
||||||
|
- $formkit: text
|
||||||
|
label: 侧边栏最近评论-邮箱头像服务地址
|
||||||
|
help: '邮箱头像服务地址,支持参考文档自定义部分参数,其中“{hash}”表示邮箱Hash值。'
|
||||||
|
name: providerMirror
|
||||||
|
value: "https://cravatar.cn/avatar/{hash}"
|
||||||
|
validation: required
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
name: categories_more
|
name: categories_more
|
||||||
label: 侧边栏分类-显示”更多”按钮
|
label: 侧边栏分类-显示”更多”按钮
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
th:with="
|
th:with="
|
||||||
emailHash = ${comment.spec.owner.annotations != null ? comment.spec.owner.annotations['email-hash'] : ''},
|
emailHash = ${comment.spec.owner.annotations != null ? comment.spec.owner.annotations['email-hash'] : ''},
|
||||||
userA = ${comment.owner.avatar},
|
userA = ${comment.owner.avatar},
|
||||||
img = ${#strings.isEmpty(userA) && !#strings.isEmpty(emailHash) ? theme.config.basic_info.providerMirror+'/avatar/'+emailHash : userA}">
|
img = ${#strings.isEmpty(userA) && !#strings.isEmpty(emailHash) ? #strings.replace(theme.config.sidebar.providerMirror, '{hash}', emailHash) : userA}">
|
||||||
<img width="35" height="35" th:unless="${#strings.isEmpty(img)}" class="avatar" th:src="${img}"
|
<img width="35" height="35" th:unless="${#strings.isEmpty(img)}" class="avatar" th:src="${img}"
|
||||||
th:alt="${comment.owner.displayName}">
|
th:alt="${comment.owner.displayName}">
|
||||||
<div th:if="${#strings.isEmpty(img)}" class="no-avatar">
|
<div th:if="${#strings.isEmpty(img)}" class="no-avatar">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user