2021-12-28 08:36:20 +08:00
|
|
|
<#include "module/macro.ftl">
|
|
|
|
<@layout title="${post.title!} - ${blog_title!}">
|
2021-12-31 15:53:37 +08:00
|
|
|
|
|
|
|
<div id="readProgress">
|
|
|
|
<div class="read-progress-bar" role="progressbar" style="width: 0"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<#-- <#include "module/header.ftl"> -->
|
|
|
|
<div class="post">
|
|
|
|
<div class="title">
|
|
|
|
<h1>
|
|
|
|
<a href='${post.fullPath!}'>${post.title!}</a>
|
|
|
|
</h1>
|
|
|
|
<div class="info">
|
|
|
|
<span>
|
|
|
|
<i class="ri-quill-pen-line"></i>
|
|
|
|
${user.nickname!}
|
|
|
|
<#assign timeago = (.now?long - post.createTime?long)>
|
|
|
|
|
|
|
|
<#if timeago < 60000 >
|
|
|
|
刚刚发表哦 ~
|
|
|
|
<#elseif (timeago >= 60000) && (timeago < 3600000)>
|
|
|
|
发表于 ${(timeago / 60000)?int} 分钟前
|
|
|
|
<#elseif (timeago >= 3600000) && (timeago < 86400000)>
|
|
|
|
发表于 ${(timeago / 3600000)?int} 小时前
|
|
|
|
<#elseif (timeago >= 86400000) && (timeago < 604800000)>
|
|
|
|
发表于 ${(timeago / 86400000)?int} 天前
|
|
|
|
<#elseif (timeago >= 604800000) && (timeago < 3153600000)>
|
|
|
|
发表于 ${(timeago / 604800000)?int} 周前
|
|
|
|
<#elseif (timeago >= 3153600000) && (timeago < 94608000000)>
|
2022-01-20 09:03:52 +08:00
|
|
|
发表于 ${(timeago / 3153600000)?int} 月前
|
2021-12-31 15:53:37 +08:00
|
|
|
<#elseif (timeago >= 94608000000)>
|
|
|
|
发表于很久很久以前 ~
|
|
|
|
</#if>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<i class="ri-article-line"></i>
|
|
|
|
共 ${post.wordCount!} 字、阅读约
|
|
|
|
<#if (post.wordCount! / 300)?int == 0>
|
|
|
|
1
|
|
|
|
<#else>
|
|
|
|
${(post.wordCount! / 300)?int}
|
|
|
|
</#if>
|
|
|
|
分钟
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-14 19:10:22 +08:00
|
|
|
<div class="markdown">
|
2021-12-31 15:53:37 +08:00
|
|
|
${post.formatContent!}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-15 01:02:47 +08:00
|
|
|
<div class="post-bottom-menu">
|
|
|
|
<a href="${blog_url!}" >
|
2022-01-14 14:49:51 +08:00
|
|
|
退回首页
|
|
|
|
</a>
|
2022-11-01 16:39:08 +08:00
|
|
|
<#if settings.open_comment!false>
|
|
|
|
<a href="javascript:document.getElementById('comment').classList.remove('close')">
|
|
|
|
留下一言
|
|
|
|
</a>
|
|
|
|
</#if>
|
2022-01-14 14:49:51 +08:00
|
|
|
</div>
|
2021-12-31 15:53:37 +08:00
|
|
|
</main>
|
2022-01-14 14:49:51 +08:00
|
|
|
<#include "module/comment.ftl">
|
2022-01-18 17:57:08 +08:00
|
|
|
<@comment target=post type="post" />
|
2021-12-28 08:36:20 +08:00
|
|
|
</@layout>
|