chore: 适配

This commit is contained in:
nineya 2023-03-27 19:09:38 +08:00
parent 3b63f490fa
commit df927346b1
5 changed files with 7 additions and 15 deletions

View File

@ -13,10 +13,6 @@ spec:
placeholder: 请输入用户名 placeholder: 请输入用户名
value: admin value: admin
help: 后台用户管理中作者的用户名填写错误将导致个人资料显示异常示例admin help: 后台用户管理中作者的用户名填写错误将导致个人资料显示异常示例admin
- $formkit: text
name: small_title
label: 网站副标题
placeholder: '请输入网站副标题'
- $formkit: text - $formkit: text
name: document_hidden_title name: document_hidden_title
label: 离屏文案(离开) label: 离屏文案(离开)
@ -42,11 +38,6 @@ spec:
label: '黑暗模式 Logo' label: '黑暗模式 Logo'
placeholder: '请输入/选择 Logo 路径' placeholder: '请输入/选择 Logo 路径'
help: '在黑暗模式时显示的 Logo放空默认为网站 Logo。' help: '在黑暗模式时显示的 Logo放空默认为网站 Logo。'
- $formkit: text
name: page_number
label: 分页页码数量
placeholder: '请输入数量数值'
value: '5'
- $formkit: text - $formkit: text
name: record_number name: record_number
label: 备案号 label: 备案号
@ -893,7 +884,7 @@ spec:
- $formkit: radio - $formkit: radio
name: effects_circle_magic_mode name: effects_circle_magic_mode
label: 上升圆点特效显示模式 label: 上升圆点特效显示模式
value: night value: none
options: options:
- value: none - value: none
label: 不显示 label: 不显示

File diff suppressed because one or more lines are too long

View File

@ -16,9 +16,9 @@
th:if="${!#strings.isEmpty(theme.config.basic_info.record_number)}" th:if="${!#strings.isEmpty(theme.config.basic_info.record_number)}"
href="http://beian.miit.gov.cn/publish/query/indexFirst.action" target="_blank" rel="noopener noreferrer nofollow" href="http://beian.miit.gov.cn/publish/query/indexFirst.action" target="_blank" rel="noopener noreferrer nofollow"
th:text="${theme.config.basic_info.record_number}"></a><span class="footer-truncation">Powered by <a class="powered" href="https://halo.run/" target="_blank">Halo</a> & <a class="powered" href="https://github.com/nineya/halo-theme-dream" target="_blank">Dream</a></span></p> th:text="${theme.config.basic_info.record_number}"></a><span class="footer-truncation">Powered by <a class="powered" href="https://halo.run/" target="_blank">Halo</a> & <a class="powered" href="https://github.com/nineya/halo-theme-dream" target="_blank">Dream</a></span></p>
<p class="icon-spot" th:if="${!#strings.isEmpty(theme.config.basic_info.website_time) && theme.config.basic_info.enable_busuanzi}"> <p class="icon-spot" th:if="${!#strings.isEmpty(theme.config.basic_info.website_time) || theme.config.enhance.enable_busuanzi}">
<span th:if="${!#strings.isEmpty(theme.config.basic_info.website_time)}" id="websiteDate">建站<span class="stand">00</span><span class="stand">0</span><span class="stand">0</span><span class="stand">0</span></span> <span th:if="${!#strings.isEmpty(theme.config.basic_info.website_time)}" id="websiteDate">建站<span class="stand">00</span><span class="stand">0</span><span class="stand">0</span><span class="stand">0</span></span>
<span th:if="${theme.config.basic_info.enable_busuanzi}" class="icon-spot footer-truncation"> <span th:if="${theme.config.enhance.enable_busuanzi}" class="icon-spot footer-truncation">
<span id="busuanzi_container_site_uv" style="display: none"> <span id="busuanzi_container_site_uv" style="display: none">
<i class="fa fa-user" aria-hidden="true"></i><span class="stand" id="busuanzi_value_site_uv">0</span>访客 <i class="fa fa-user" aria-hidden="true"></i><span class="stand" id="busuanzi_value_site_uv">0</span>访客
</span> </span>

View File

@ -1,4 +1,5 @@
<html lang="zh" xmlns:th="https://www.thymeleaf.org" <html lang="zh" xmlns:th="https://www.thymeleaf.org"
th:class="${theme.config.basic_style.theme_style}"
th:fragment="layout (title, canonical, content, isPost)"> th:fragment="layout (title, canonical, content, isPost)">
<th:block th:if="${!#strings.equals('',param._pjax)}"> <th:block th:if="${!#strings.equals('',param._pjax)}">
<th:block th:replace="~{common/head :: head}"/> <th:block th:replace="~{common/head :: head}"/>
@ -11,7 +12,7 @@
</th:block> </th:block>
<th:block th:unless="${!#strings.equals('',param._pjax)}" <th:block th:unless="${!#strings.equals('',param._pjax)}"
th:with="stats = ${siteStatsFinder.getStats()}, th:with="stats = ${siteStatsFinder.getStats()},
contributor = ${contributorFinder.getContributor(theme.config.sidebar.metadata_name)}"> contributor = ${contributorFinder.getContributor(theme.config.basic_info.metadata_name)}">
<th:block th:replace="~{common/head :: head}"/> <th:block th:replace="~{common/head :: head}"/>
<body> <body>
<th:block th:replace="~{common/navbar}"/> <th:block th:replace="~{common/navbar}"/>

View File

@ -5,6 +5,6 @@
<i class="fa fa-volume-up card-title-label"></i><span>公告</span> <i class="fa fa-volume-up card-title-label"></i><span>公告</span>
</div> </div>
<div class="card-content"> <div class="card-content">
<div th:text="${#strings.isEmpty(theme.config.sidebar.notice_content)? '<p>&emsp;&emsp;欢迎来访' + site.title + ',博主还没有发布任何公告!</p>' : theme.config.sidebar.notice_content}"></div> <div th:utext="${#strings.isEmpty(theme.config.sidebar.notice_content)? '<p>&emsp;&emsp;欢迎来访' + site.title + ',博主还没有发布任何公告!</p>' : theme.config.sidebar.notice_content}"></div>
</div> </div>
</div> </div>