update article cover
This commit is contained in:
parent
3994156ab8
commit
4904d8e557
@ -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;
|
||||
|
||||
@ -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"> > </span>
|
||||
<a th:href="@{'/posts/' + ${post.spec.slug}}">
|
||||
<span th:text="${post.spec.title}"></span>
|
||||
</a>
|
||||
</a>
|
||||
</th:block>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user