Merge remote-tracking branch 'origin/master'

This commit is contained in:
nineya 2023-04-05 00:20:42 +08:00
commit 2af363fd90
3 changed files with 11 additions and 6 deletions

View File

@ -10,6 +10,7 @@ spec:
- $formkit: radio - $formkit: radio
name: enable_copyright name: enable_copyright
label: 开启文章版权声明 label: 开启文章版权声明
value: ""
help: '当前配置将覆盖主题中的默认配置。' help: '当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"
@ -21,6 +22,7 @@ spec:
- $formkit: select - $formkit: select
name: thumbnail_mode name: thumbnail_mode
label: 文章列表缩略图模式 label: 文章列表缩略图模式
value: ""
help: '文章在列表的缩略图模式,除网格布局外,当前配置将覆盖主题中的默认配置。' help: '文章在列表的缩略图模式,除网格布局外,当前配置将覆盖主题中的默认配置。'
options: options:
- value: default - value: default
@ -40,11 +42,13 @@ spec:
- $formkit: text - $formkit: text
name: tips name: tips
label: 文章提示 label: 文章提示
value: ""
placeholder: '请输入提示内容' placeholder: '请输入提示内容'
help: '在文章顶部显示一条提示。' help: '在文章顶部显示一条提示。'
- $formkit: radio - $formkit: radio
name: enable_katex name: enable_katex
label: KaTeX 公式支持 label: KaTeX 公式支持
value: ""
help: '博客通过 KaTeX 做数学公式渲染,当前配置将覆盖主题中的默认配置。' help: '博客通过 KaTeX 做数学公式渲染,当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"
@ -56,7 +60,7 @@ spec:
- $formkit: radio - $formkit: radio
name: enable_share name: enable_share
label: 开启文章分享 label: 开启文章分享
value: true value: ""
help: '当前配置将覆盖主题中的默认配置。' help: '当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"
@ -80,7 +84,7 @@ spec:
- $formkit: radio - $formkit: radio
name: enable_copyright name: enable_copyright
label: 开启文章版权声明 label: 开启文章版权声明
value: true value: ""
help: '当前配置将覆盖主题中的默认配置。' help: '当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"
@ -92,12 +96,13 @@ spec:
- $formkit: text - $formkit: text
name: tips name: tips
label: 文章提示 label: 文章提示
value: ""
placeholder: '请输入提示内容' placeholder: '请输入提示内容'
help: '在文章顶部显示一条提示。' help: '在文章顶部显示一条提示。'
- $formkit: radio - $formkit: radio
name: enable_katex name: enable_katex
label: KaTeX 公式支持 label: KaTeX 公式支持
value: false value: ""
help: '博客通过 KaTeX 做数学公式渲染,当前配置将覆盖主题中的默认配置。' help: '博客通过 KaTeX 做数学公式渲染,当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"
@ -109,7 +114,7 @@ spec:
- $formkit: radio - $formkit: radio
name: enable_share name: enable_share
label: 开启文章分享 label: 开启文章分享
value: true value: ""
help: '当前配置将覆盖主题中的默认配置。' help: '当前配置将覆盖主题中的默认配置。'
options: options:
- value: "true" - value: "true"

View File

@ -14,7 +14,7 @@
</ol> </ol>
</div> </div>
</button> </button>
<button th:if="${type == 'Post'}" class="agree like" data-id="${(post.id!0)?c}" <button th:if="${type == 'Post'}" class="agree like" th:data-id="${post.metadata.name}"
data-likes="${(post.likes!0)?c}"> data-likes="${(post.likes!0)?c}">
<i class="fa fa-thumbs-o-up"></i> <i class="fa fa-thumbs-o-up"></i>
<span><span th:text="${post.stats.upvote}"></span></span> <span><span th:text="${post.stats.upvote}"></span></span>

View File

@ -68,7 +68,7 @@
<th:bolck th:if="${enableCopyright || enableShare}"> <th:bolck th:if="${enableCopyright || enableShare}">
<hr/> <hr/>
<th:block th:if="${enableCopyright}"> <th:block th:if="${enableCopyright}">
<th:block th:replace="~{main/copyright}"></th:block> <th:block th:replace="~{main/copyright}"/>
</th:block> </th:block>
<div th:if="${enableShare}" class="dshare"></div> <div th:if="${enableShare}" class="dshare"></div>
</th:bolck> </th:bolck>