2023-07-10 15:55:35 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<th:block
|
|
|
|
th:insert="~{common/layout :: layout (title = '瞬间 - ' + ${site.title}, canonical = @{/moments}, content = ~{::content}, isPost = true)}"
|
|
|
|
th:with="isJournals = true, enableShare = ${theme.config.post.enable_post_share}, enableComment = ${theme.config.page_config.enable_journals_comment}"
|
|
|
|
xmlns:th="https://www.thymeleaf.org">
|
|
|
|
<th:block th:fragment="content">
|
|
|
|
<div class="card card-content journal" th:each="moment : ${moments.items}">
|
|
|
|
<p class="journal-date">
|
2023-09-12 10:44:43 +08:00
|
|
|
<i class="ri-send-plane-line"></i>
|
2023-07-10 15:55:35 +08:00
|
|
|
<em th:text="${#dates.format(moment.spec.releaseTime,'yyyy年MM月dd日 HH:mm:ss')}"></em>
|
|
|
|
</p>
|
|
|
|
<div class="journal-content fold">
|
|
|
|
<div class="main-content not-toc" data-target="Moment" th:data-id="${moment.metadata.name}">
|
|
|
|
[(${moment.spec.content.html})]
|
|
|
|
<mew-photos th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}">
|
|
|
|
<img th:if="${momentItem.type.name == 'PHOTO'}" th:src="${momentItem.url}" />
|
|
|
|
</mew-photos>
|
|
|
|
<th:block th:if="${!#lists.isEmpty(moment.spec.content.medium)}" th:each="momentItem : ${moment.spec.content.medium}">
|
|
|
|
<mew-video th:if="${momentItem.type.name == 'VIDEO'}" th:src="${momentItem.url}"></mew-video>
|
|
|
|
</th:block>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="journal-operation">
|
|
|
|
<span class="journal-operation-item">
|
|
|
|
<a class="like" th:data-id="${moment.metadata.name}" th:data-likes="${moment.stats.upvote}">
|
2023-09-12 10:44:43 +08:00
|
|
|
<i class="ri-heart-3-line"></i>
|
2023-07-10 15:55:35 +08:00
|
|
|
<em th:text="${(moment.stats.upvote != 0)? moment.stats.upvote : '喜欢'}"></em>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="journal-operation-item" th:if="${enableComment}">
|
|
|
|
<a class="comment">
|
2023-09-12 10:44:43 +08:00
|
|
|
<i class="ri-message-3-line"></i>
|
2023-07-10 15:55:35 +08:00
|
|
|
<em th:text="${(moment.stats.approvedComment != 0)? moment.stats.approvedComment : '评论'}"></em>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="journal-operation-item" th:if="${enableShare}">
|
2023-09-12 10:44:43 +08:00
|
|
|
<a class="share"><i class="ri-share-forward-line"></i><em>分享</em></a>
|
2023-07-10 15:55:35 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="journal-comment" th:if="${enableComment && pluginFinder.available('PluginCommentWidget')}">
|
|
|
|
<div class="widget-comment" data-target="Moment" th:data-id="${moment.metadata.name}"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<th:block th:replace="~{main/pagination :: pagination (${moments}, '/moments')}"/>
|
|
|
|
</th:block>
|
|
|
|
</th:block>
|