update article banner
This commit is contained in:
parent
1fe9a4b13f
commit
a4945ceb53
@ -12,7 +12,7 @@ body {
|
|||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
color: #444;
|
color: #444;
|
||||||
height: 60vh;
|
height: 60vh;
|
||||||
margin-top: 80px;
|
margin-top: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
21
templates/modules/post_article_banner.html
Normal file
21
templates/modules/post_article_banner.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<div class="article banner top">
|
||||||
|
<img th:if="${not #strings.isEmpty(post.spec.cover)}" class="bg" 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)}">
|
||||||
|
<span class="label">当前位置:</span>
|
||||||
|
<a class="cap" href="/" title="首页">
|
||||||
|
<i class="fa fa-home" aria-hidden="true"></i> 首页
|
||||||
|
</a>
|
||||||
|
<span class="sep"> > </span>
|
||||||
|
<th:block th:each="cat, catStat : ${post.categories}">
|
||||||
|
<a class="cap" th:href="@{${cat.status.permalink}}" th:text="${cat.spec.displayName}"></a>
|
||||||
|
<span class="sep" th:if="${!catStat.last}"> > </span>
|
||||||
|
</th:block>
|
||||||
|
<span class="sep"> > </span>
|
||||||
|
<span th:text="${post.spec.title}"></span>
|
||||||
|
</th:block>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
x
Reference in New Issue
Block a user