修复搜索结果带有html标签内容导致网站搜索结果样式错误的问题

This commit is contained in:
j m 2024-07-20 14:17:33 +08:00
parent 6575aeac16
commit 2d0d35ffe5
3 changed files with 6 additions and 13 deletions

View File

@ -3,17 +3,8 @@
th:fragment="layout (title, canonical, content, isPost)">
<th:block th:with="contributor = ${contributorFinder.getContributor(theme.config.basic_info.metadata_name)},
enableComment = ${baseEnableComment == true && site.comment.enable && pluginFinder.available('PluginCommentWidget')}">
<th:block th:if="${!#strings.equals('',param._pjax)}">
<th:block th:replace="~{common/head :: head}"/>
<body>
<div class="column-main">
<th:block th:replace="${content}"/>
</div>
<th:block th:replace="~{common/scripts}"/>
</body>
</th:block>
<th:block th:unless="${!#strings.equals('',param._pjax)}"
th:with="stats = ${siteStatsFinder.getStats()}">
<th:block th:with="stats = ${siteStatsFinder.getStats()}">
<th:block th:replace="~{common/head :: head}"/>
<body>
<th:block th:replace="~{common/navbar}"/>

View File

@ -51,7 +51,9 @@
<a th:href="${hit.permalink}" th:target="${theme.config.page_config.search.search_target}" >
<div class="card-content main">
<h2 class="title" th:utext="${hit.title}"></h2>
<div class="main-content not-toc" th:utext="${hit.description}"></div>
<div class="main-content not-toc">
<span th:utext="${hit.description}"></span>
</div>
<hr/>
<div class="meta">
<div></div>

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap
# 版本号
version: 1.2.6.beta8
version: 1.2.6.beta9
# 最低支持的 Halo 版本
require: ">=2.15.0"
# 许可