mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
修复没有图片时列表显示异常问题
This commit is contained in:
parent
cb1a887003
commit
328bf795f9
@ -97,7 +97,7 @@
|
|||||||
<p th:text="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd')}"></p>
|
<p th:text="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd')}"></p>
|
||||||
</a>
|
</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">
|
class="card widget">
|
||||||
<a th:if="${!#strings.isEmpty(thumbnail)}" class="thumbnail" th:href="${post.status.permalink}">
|
<a th:if="${!#strings.isEmpty(thumbnail)}" class="thumbnail" th:href="${post.status.permalink}">
|
||||||
<div class="thumbnail-image" th:style="'background-image: url(' + ${thumbnail} + ')'">
|
<div class="thumbnail-image" th:style="'background-image: url(' + ${thumbnail} + ')'">
|
||||||
@ -158,4 +158,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user