mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 03:09:41 +08:00
fix(post): 修复文章摘要取值错误问题,#30
This commit is contained in:
parent
b6c81d6e9a
commit
4efe429012
@ -1,5 +1,5 @@
|
|||||||
<head xmlns:th="https://www.thymeleaf.org" th:fragment="head"
|
<head xmlns:th="https://www.thymeleaf.org" th:fragment="head"
|
||||||
th:with="description=${isPost ? post != null ? post.spec.excerpt.raw : singlePage != null ? singlePage.spec.excerpt.raw : site.seo.description : site.seo.description}">
|
th:with="description=${isPost ? post != null ? post.status.excerpt : singlePage != null ? singlePage.status.excerpt : site.seo.description : site.seo.description}">
|
||||||
<title th:text="${title + (#strings.isEmpty(site.subtitle) ? '' : '|' + site.subtitle)}"></title>
|
<title th:text="${title + (#strings.isEmpty(site.subtitle) ? '' : '|' + site.subtitle)}"></title>
|
||||||
<script th:if="${(theme.config.enhance.enable_sw != 'false')}" th:src="${(theme.config.enhance.enable_sw == 'uninstall')? #theme.assets('/assets/js/sw.min.js') + '?mew=0.0.1' : '/sw.min.js?mew=0.0.1' + theme.config.enhance.enable_sw}"></script>
|
<script th:if="${(theme.config.enhance.enable_sw != 'false')}" th:src="${(theme.config.enhance.enable_sw == 'uninstall')? #theme.assets('/assets/js/sw.min.js') + '?mew=0.0.1' : '/sw.min.js?mew=0.0.1' + theme.config.enhance.enable_sw}"></script>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<span class="top" th:if="${post.spec.pinned}">置顶</span><a
|
<span class="top" th:if="${post.spec.pinned}">置顶</span><a
|
||||||
th:href="${post.status.permalink}" th:text="${post.spec.title}"></a>
|
th:href="${post.status.permalink}" th:text="${post.spec.title}"></a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="main-content" th:text="${post.spec.excerpt.raw}"></div>
|
<div class="main-content" th:text="${post.status.excerpt}"></div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
@ -66,7 +66,7 @@
|
|||||||
<span class="top" th:if="${post.spec.pinned}">置顶</span><a
|
<span class="top" th:if="${post.spec.pinned}">置顶</span><a
|
||||||
th:href="${post.status.permalink}" th:text="${post.spec.title}"></a>
|
th:href="${post.status.permalink}" th:text="${post.spec.title}"></a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="main-content" th:text="${post.spec.excerpt.raw}"></div>
|
<div class="main-content" th:text="${post.status.excerpt}"></div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
@ -126,7 +126,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="main-content" th:text="${post.spec.excerpt.raw}"></div>
|
<div class="main-content" th:text="${post.status.excerpt}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user