-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (56 loc) · 1.94 KB
/
index.html
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
extends base
- var current_title = page.title || tag.name || category.name || site.title
block title
if config.subtitle
title= config.title + ' | ' + config.subtitle
else
title= config.title
block content
for post in page.posts.toArray()
.post
h1.post-title
include _partial/helpers
a(href=url_for(post.path))
+title(post)
.post-meta= post.date.format(config.date_format)
if theme.duoshuo
a.ds-thread-count(data-thread-key=post.path, href=url_for(post.path) + '#comments')
if theme.disqus
a.disqus-comment-count(data-disqus-identifier=post.path, href=url_for(post.path) + '#disqus_thread')
if theme.gentie
a.ds-thread-count(class='cloud-tie-join-count', href=url_for(post.path) + '#comments')
span.join-count(lang='join-count' style='margin: 0 3px 0 1px;' data-url='#{config.url}#{url_for(post.path)}') 0
span= ' ' + __('Discuss')
if post.description
.post-content
!= post.description
else if post.excerpt
.post-content
!= post.excerpt
else if post.content
- var br = 0
- for (var i = 0; i < 5; ++i) {
- br = post.content.indexOf('\n',br+1)
if br<0
- break
if br >150
- break
- }
if br < 0
.post-content
!= post.content
else
.post-content
!= post.content.substring(0, br)
p(class='readmore')
a(href=url_for(post.path))= __('Readmore')
include _partial/paginator
if theme.disqus
script(id='dsq-count-scr', src='//#{theme.disqus}.disqus.com/count.js', async)
if theme.gentie
script.
var yunModuleEnv = true;
script(src='//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js')
script.
var yunTieProductKey = '#{theme.gentie}';
Tie.loader('aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vZXh0ZW5kL2xpc3Rfam9pbl9zY3JpcHQuaHRtbA==', true);