Skip to content

Commit

Permalink
fix: 修复没有图片时列表显示异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nineya committed Jul 4, 2024
1 parent 18052f2 commit a2bf584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/main/article_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h2 class="title"><span class="top">置顶</span>
</a>

<div
th:if="${#strings.isEmpty(thumbnail_mode) || thumbnail_mode == 'default'}"
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} + ')'">
Expand Down

0 comments on commit a2bf584

Please sign in to comment.