50 lines
3.0 KiB
HTML
50 lines
3.0 KiB
HTML
<div class="uk-width-1-2@l uk-width-1-1@m">
|
|
<div th:id="${'post-'+post.metadata.name}" class="loop_content p_item grid_item uk-animation-slide-bottom-small"
|
|
th:classappend="${post.spec.pinned ? 'sticky' :''}">
|
|
<div class="normal_item_inner">
|
|
<div class="normal_grid_content">
|
|
<div class="entry-content">
|
|
<h2 class="entry-title"><a th:href="@{${post.status.permalink}}" rel="bookmark">[[${post.spec.title}]]</a></h2>
|
|
<div class="entry_meta">
|
|
<span class="nickname">@[[${post.owner.displayName}]]
|
|
</span> - <time itemprop="datePublished" th:datetime="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd HH:mm')}">
|
|
<th:block th:replace="~{modules/widgets/time :: time(${post.spec.publishTime})}"></th:block>
|
|
</time>
|
|
</div>
|
|
|
|
<div class="feature round12">
|
|
<a th:href="@{${post.status.permalink}}"
|
|
th:with="cover_img=${#strings.contains(theme.config.post.post_banner,'http') ? ((#strings.contains(theme.config.post.post_banner,'?') ? theme.config.post.post_banner : theme.config.post.post_banner+'?')+','+post.spec.title): theme.config.post.post_banner}">
|
|
<img class="round12 shadow lazy"
|
|
th:with="_cover = ${#strings.isEmpty(post.spec.cover) ? cover_img : thumbnail.gen(post.spec.cover, 's')}"
|
|
th:data-src="${_cover}" alt="">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="entry-footer">
|
|
<div class="post_footer_meta">
|
|
<div class="left">
|
|
<span class="post_views"><i class="ri-eye-line"></i>
|
|
[[${post.stats.visit}]]
|
|
</span>
|
|
<span class="comnum"><i class="ri-chat-4-line"></i>
|
|
<small> [[${post.stats.comment}]] </small>
|
|
</span>
|
|
<a class="up_like " data-action="up" data-key="post" th:data-id="${post.metadata.name}">
|
|
<i class="ri-heart-2-line"></i>
|
|
<span>[[${post.stats.upvote}]]</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="right">
|
|
<span th:if="${post.spec.pinned}" class="sticky_icon"><i class="ri-fire-line"></i> TOP</span>
|
|
<th:block th:if="${not #lists.isEmpty(post.categories)}">
|
|
<div class="normal_cat"># [[${post.categories[0].spec.displayName}]]</div>
|
|
</th:block>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |