-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.jade
38 lines (35 loc) · 1.22 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
extends base
block title
title= post.title
block blog_main
div.blog-post.blog-post-page
h2.blog-post-title
a(href=post.url)= post.title
p.blog-post-meta 分类:
a(href="/categories/{{post.metadata.category}}")= post.metadata.category
标签:
for tag in post.tags
a(href='/tags/'+tag)= tag
span= post.date.format('%Y-%m-%d %H:%M')
访问量:{{post.visits}}/{{post._visits}}
p= post.content
if pre_one
a.pre(href='{{pre_one.url}}#main') < {{ pre_one.title }}
if next_one
a.next(href='{{next_one.url}}#main') {{ next_one.title }} >
posthash = get_hash(post.full_path)
.ds-thread(data-thread-key="{{posthash}}", data-title="{{post.title}}", data-url="http://{{site.domain}}/{{post.url}}")
script
var duoshuoQuery = {short_name:"dracula"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
block blog_sidebar
if post.toc
div.sidebar-module= post.toc
include include/tag_cloud_count