修复没有图片时列表显示异常问题

This commit is contained in:
mjking 2024-07-04 20:43:02 +08:00 committed by GitHub
parent cb1a887003
commit 328bf795f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@
<p th:text="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd')}"></p>
</a>
<div th:if="${#strings.isEmpty(thumbnail_mode) || thumbnail_mode == 'default'}"
<div th:if="${(#strings.isEmpty(thumbnail) && thumbnail_mode != 'fold') || thumbnail_mode == 'default'}"
class="card widget">
<a th:if="${!#strings.isEmpty(thumbnail)}" class="thumbnail" th:href="${post.status.permalink}">
<div class="thumbnail-image" th:style="'background-image: url(' + ${thumbnail} + ')'">
@ -158,4 +158,4 @@
</div>
</th:block>
</div>
</th:block>
</th:block>