-
Notifications
You must be signed in to change notification settings - Fork 9
/
post.jade
executable file
·40 lines (35 loc) · 1.08 KB
/
post.jade
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
extends index
block title
title= post.title + " - " + site.title
block content
main
article.content
h1= post.title
.meta
span.item
i.fa.fa-calendar-o
time(datetime= post.date.format("%Y-%m-%d"))= post.date.format("%Y.%m.%d")
if post.category
span.item
i.fa.fa-code
a(href=post.category.url)= post.category.title
span.item
i.fa.fa-battery-three-quarters
span= "%s度" %(post.visits or 0)
span.item
i.fa.fa-comment-o
a(href="{{post.url}}#comments")= "%s评" %(post.comments_count or 0)
.post= post.content
section.pager
if posts.pre_one
a.pre(href=posts.previous_one.url)= posts.previous_one.title
else
span.pre
已是最新一篇
if posts.next_one
a.next(href=posts.next_one.url)= posts.next_one.title
else
span.next
已是最早一篇
section#comments
+post.comments_as_html()