-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.ftl
67 lines (59 loc) · 2.34 KB
/
post.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<#import "module/cover.ftl" as cover>
<#include "module/macro.ftl">
<#-- Post Page Template -->
<@layout title="${post.title}-${blog_title!}">
<#-- Top Menu -->
<#include "module/menu.ftl">
<#-- Page Cover -->
<@cover.layout img="${post.thumbnail!}" title="${post.title}" subtitle="">
<div class="tags">
<#if post.tags?? && post.tags?size gt 0>
<#list post.tags as tag>
<a href="${tag.fullPath!}">#${tag.name!}</a>
</#list>
</#if>
</div>
<div class="post-foot">
<div><span class="iconfont"></span> <span>${post.createTime?string("yyyy-MM-dd")}</span></div>
<div><span class="iconfont"></span> <span>${post.visits!}</span></div>
<div><span class="iconfont"></span> <span>${post.commentCount}</span></div>
</div>
</@cover.layout>
<main>
<section id="write" class="container markdown">
${post.formatContent}
</section>
<hr class="container">
<section id="post-copyright" class="markdown container">
<blockquote>
<p>COPYRIGHT: 采用 <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">知识共享署名4.0</a> 国际许可协议进行许可</p>
<p>LINKS: <a href="${post.fullPath}">${post.fullPath}</a></p>
</blockquote>
</section>
<hr class="container">
<section id="post-pagination" class="container">
<#-- Pagination -->
<div class="prev-post">
<#if prevPost??>
<a href="${prevPost.fullPath!}">
<span class="iconfont"></span>
<span>${prevPost.title!}</span>
</a>
</#if>
</div>
<div class="next-post">
<#if nextPost??>
<a href="${nextPost.fullPath!}">
<span>${nextPost.title!}</span>
<span class="iconfont"></span>
</a>
</#if>
</div>
</section>
<#include "module/comment.ftl">
<@comment post,"post" />
</main>
<#-- Page Footer -->
<#include "module/footer.ftl">
<#include "module/script.ftl">
</@layout>