Merge remote-tracking branch 'origin/main'

This commit is contained in:
1152958806@qq.com 2023-08-13 23:21:12 +08:00
commit 818275069a
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@
<!-- 自定义的文章右上角的推荐文章 -->
<div class="recent-post-item"
th:each="cuscomPost : ${theme.config.top.BannerRight.recommendPostCustom}"
th:if="${#strings.equals(theme.config.top.BannerRight.recommendPost, 'custom')}">
<th:block th:if="${not #strings.isEmpty(cuscomPost.post)}" th:with="post = ${postFinder.getByName(cuscomPost.post)}">
th:if="${#strings.equals(theme.config.top.BannerRight.recommendPost, 'custom') && not #strings.isEmpty(cuscomPost.post) }">
<th:block th:with="post = ${postFinder.getByName(cuscomPost.post)}">
<div class="post_cover">
<a th:href="@{${post.status.permalink}}" th:title="${post.spec.title}">
<span class="recent-post-top-text"
@ -71,4 +71,4 @@
</div>
</div>
</div>
</html>
</html>