feat(post.html): 添加最后更新时间显示

在文章页面添加最后更新时间显示
This commit is contained in:
DLLCNX 2024-01-11 10:35:45 +08:00
parent 90b765f597
commit 48e24fdf6f
1 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,13 @@
th:title="${#dates.format(post.spec.publishTime,'yyyy-MM-dd HH:mm:ss')}">
</time>
</span>
<span class="post-meta-date">
<i class="haofont hao-icon-pencil post-meta-icon" title="最后更新时间"></i>
<time th:attr="datetime=${#dates.format(post.status.lastModifyTime, 'yyyy-MM-dd')}"
th:text="${#dates.format(post.status.lastModifyTime,'yyyy/MM/dd')}"
th:title="${#dates.format(post.status.lastModifyTime,'yyyy-MM-dd HH:mm:ss')}">
</time>
</span>
<span th:with="syncStatus=${#strings.isEmpty(#annotations.get(post, 'sync_status')) ? '未同步': #annotations.get(post, 'sync_status')}"
class="post-meta-wechat" th:title=" ${pluginFinder.available('plugin-platforms-sync') && (syncStatus == '同步更新文章成功' || syncStatus == '同步上传文章成功') ? '该文章已在公众号中更新' : '该文章在博客首发'}">
<th:block th:unless="${pluginFinder.available('plugin-platforms-sync') && (syncStatus == '同步更新文章成功' || syncStatus == '同步上传文章成功')}">