Skip to content

Commit 5735fee

Browse files
committed
🐛 Fix: 修复头部图片展示问题
1 parent dc0ec72 commit 5735fee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/>
2121
</div>
2222
<div
23-
th:if="${#strings.isEmpty(post.spec.cover)} and ${theme.config.general.enabled_card_random_cover_list}"
23+
th:if="${not #strings.isEmpty(post.spec.cover)} or ${theme.config.general.enabled_card_random_cover_list}"
2424
class="cover-bg absolute bottom-0 left-0 right-0 top-0 opacity-30"
2525
>
2626
<img
@@ -30,7 +30,7 @@
3030
/>
3131
</div>
3232
<div
33-
th:unless="${not #strings.isEmpty(post.spec.cover)} or ${theme.config.general.enabled_card_random_cover_list}"
33+
th:if="${#strings.isEmpty(post.spec.cover)} and ${!theme.config.general.enabled_card_random_cover_list}"
3434
class="placeholder-bg"
3535
></div>
3636
<div

0 commit comments

Comments
 (0)