Update top-group.html

This commit is contained in:
困困鱼 2023-08-13 23:00:15 +08:00 committed by GitHub
parent e03344d449
commit 459807ce43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"