mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 20:09:41 +08:00

1.调整评论加载方式,改为组件,须更新评论插件到2.0.0含预发布 2.调整插件统一配色方案切换方式,目前使用搜索、评论插件自带的高亮和暗黑方案 3.移除百度、头条推送能力,建议使用插件进行推送
59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<th:block
|
|
th:insert="~{common/layout :: layout (title = ${title} + ' - ' + ${site.title}, canonical = @{/moments}, content = ~{::content}, isPost = true)}"
|
|
th:with="isJournals = true, enableShare = ${theme.config.page_config.enable_journals_share}, baseEnableComment = ${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">
|
|
<i class="ri-send-plane-line"></i>
|
|
<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)}">
|
|
<img th:each="momentItem : ${moment.spec.content.medium}" 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}">
|
|
<i class="ri-heart-3-line"></i>
|
|
<em th:text="${(moment.stats.upvote != 0)? moment.stats.upvote : '喜欢'}"></em>
|
|
</a>
|
|
</span>
|
|
<span class="journal-operation-item" th:if="${enableComment}">
|
|
<a class="comment">
|
|
<i class="ri-message-3-line"></i>
|
|
<em th:text="${(moment.stats.totalComment != 0)? moment.stats.totalComment : '评论'}"></em>
|
|
</a>
|
|
</span>
|
|
<span class="journal-operation-item" th:if="${enableShare}">
|
|
<a class="share"><i class="ri-share-forward-line"></i><em>分享</em></a>
|
|
</span>
|
|
<div th:if="${theme.config.page_config.enable_journals_owner}" class="journal-operation-owner" th:title="${moment.owner.displayName}">
|
|
<img th:unless="${#strings.isEmpty(moment.owner.avatar)}" class="avatar" th:src="${moment.owner.avatar}"
|
|
alt="avatar">
|
|
<div th:if="${#strings.isEmpty(moment.owner.avatar)}" class="no-avatar">
|
|
<span class="avatar-info">[[${#strings.substring(moment.owner.displayName, 0, 1)}]]</span>
|
|
</div>
|
|
<span class="name">[[${moment.owner.displayName}]]</span>
|
|
</div>
|
|
</div>
|
|
<div class="journal-comment" th:if="${enableComment}">
|
|
<halo:comment
|
|
group="moment.halo.run"
|
|
kind="Moment"
|
|
th:attr="name=${moment.metadata.name}"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<th:block th:replace="~{main/pagination :: pagination (${moments}, '/moments')}"/>
|
|
</th:block>
|
|
</th:block>
|