update article cover

This commit is contained in:
Qubot 2025-04-13 14:56:49 +00:00
parent 3994156ab8
commit 4904d8e557
2 changed files with 12 additions and 4 deletions

View File

@ -687,6 +687,14 @@ section {
/*--------------------------------------------------------------
# article
--------------------------------------------------------------*/
.banner-img {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 8px;
display: block;
}
.article-title {
margin-top: 30px;
font-size: 30px;

View File

@ -1,6 +1,6 @@
<div class="article banner top">
<img th:if="${not #strings.isEmpty(post.spec.cover)}" class="bg" th:src="${post.spec.cover}" alt="封面图">
<img th:if="${not #strings.isEmpty(post.spec.cover)}" class="bg banner-img" th:src="${post.spec.cover}" alt="封面图">
<div class="content" th:classappend="${!#strings.isEmpty(post.spec.cover)} ? ' has-cover' : ''">
<div class="top bread-nav footnote">
<th:block th:if="${not #lists.isEmpty(post.categories)}">
@ -16,8 +16,8 @@
<span class="sep"> &gt; </span>
<a th:href="@{'/posts/' + ${post.spec.slug}}">
<span th:text="${post.spec.title}"></span>
</a>
</a>
</th:block>
</div>
</div>
</div>
</div>