|
1 | | -<divclass=article-header-wrapper> |
| 1 | +<divclass=article-header-wrapper> |
2 | 2 | <divclass="article-header"> |
3 | 3 | <divclass="article-cover animated fadeIn"style=" |
4 | 4 | animation-delay:600ms; |
|
10 | 10 | <divclass="else"> |
11 | 11 | <pclass="animated fadeInDown"> |
12 | 12 | <%if (page.categories.data[0]) {%> |
13 | | -<a href="<%- '/categories/' + page.categories.data[0].name %>"><b>「</b><%-page.categories.data[0].name.toUpperCase()%><b> 」</b></a> |
| 13 | +<a href="<%- '/categories/' + page.categories.data[0].name %>"><b>「 |
| 14 | +</b><%-page.categories.data[0].name.toUpperCase()%><b> 」</b></a> |
14 | 15 | <% }else {%> |
15 | | -<a href="#"><b>「</b><%=__('default_category')%><b> 」</b></a> |
| 16 | +<a href="#"><b>「</b><%=__('default_category')%><b> 」</b></a> |
16 | 17 | <% }%> |
17 | 18 | <%-page.date.locale(config.language||'').format("MMMM DD, YYYY")%> |
18 | 19 | </p> |
19 | | - <h3class="post-title animated fadeInDown"><%-link_to(page.path,page.title||"Untitled", {class:""})%></h3> |
| 20 | + <h3class="post-title animated fadeInDown"><%-link_to(page.path,page.title||"Untitled", {class:""})%> |
| 21 | + </h3> |
20 | 22 | <%if (theme.symbols_count_time.enable) {%> |
21 | | -<pclass="post-count animated fadeInDown"> |
22 | | -<%if (theme.symbols_count_time.wordCount) {%> |
23 | | -<span> |
24 | | -<bclass="iconfont icon-text2"></b><i><%=__('word_count')%></i> |
25 | | -<%=symbolsCount(page.content)%> |
26 | | -</span> |
27 | | -<% }%> |
28 | | -<%if (theme.symbols_count_time.readCount) {%> |
29 | | -<span> |
30 | | -<bclass="iconfont icon-timer__s"></b><i><%=__('read_time')%></i> |
31 | | -<%=symbolsTime( |
| 23 | +<pclass="post-count animated fadeInDown"> |
| 24 | +<%if (theme.symbols_count_time.wordCount) {%> |
| 25 | +<span> |
| 26 | +<bclass="iconfont icon-text2"></b><i><%=__('word_count')%></i> |
| 27 | +<%=symbolsCount(page.content)%> |
| 28 | +</span> |
| 29 | +<% }%> |
| 30 | +<%if (theme.symbols_count_time.readCount) {%> |
| 31 | +<span> |
| 32 | +<bclass="iconfont icon-timer__s"></b><i><%=__('read_time')%></i> |
| 33 | +<%=symbolsTime( |
32 | 34 | page.content, |
33 | 35 | theme.symbols_count_time.awl, |
34 | 36 | theme.symbols_count_time.wpm, |
35 | 37 | theme.symbols_count_time.suffix |
36 | 38 | )%> |
37 | | -</span> |
38 | | -<% }%> |
39 | | -<%if (theme.valine.enable==true&&theme.valine.visitor==true) {%> |
40 | | -<span id="<%- '/' + page.path %>"class="leancloud_visitors" data-flag-title="<%- page.title %>"> |
41 | | -<bclass="iconfont icon-read"></b><i><%=__('read_count')%></i> |
42 | | -<iclass="leancloud-visitors-count">1000000</i> |
43 | | -</span> |
44 | | -<% }%> |
45 | | -<%if (theme.busuanzi.enable==true&&theme.valine.enable==false) {%> |
46 | | -<span id="busuanzi_container_page_pv"> |
47 | | -<bclass="iconfont icon-read"></b><i><%=__('read_count')%></i> |
48 | | -<span id="busuanzi_value_page_pv">0</span> |
49 | | -</span> |
50 | | -<% }%> |
51 | | -</p> |
| 39 | +</span> |
| 40 | +<% }%> |
| 41 | +<%if (theme.valine.enable==true&&theme.valine.visitor==true) {%> |
| 42 | +<span id="<%- '/' + page.path %>"class="leancloud_visitors" data-flag-title="<%- page.title %>"> |
| 43 | +<bclass="iconfont icon-read"></b><i><%=__('read_count')%></i> |
| 44 | +<iclass="leancloud-visitors-count">1000000</i> |
| 45 | +</span> |
| 46 | +<% }%> |
| 47 | +<%if (theme.busuanzi.enable==true&&theme.valine.enable==false) {%> |
| 48 | +<span id="busuanzi_container_page_pv"> |
| 49 | +<bclass="iconfont icon-read"></b><i><%=__('read_count')%></i> |
| 50 | +<span id="busuanzi_value_page_pv">0</span> |
| 51 | +</span> |
| 52 | +<% }%> |
| 53 | +</p> |
52 | 54 | <% }%> |
53 | 55 | <%if (page.tags&&page.tags.length){%> |
54 | | -<%-list_tags(page.tags, { |
| 56 | +<%-list_tags(page.tags, { |
55 | 57 | show_count:false, |
56 | 58 | class:'animated fadeInDown post-tags' |
57 | 59 | })%> |
|
74 | 76 |
|
75 | 77 | <divclass="article"> |
76 | 78 | <divclass='main'> |
77 | | - <divclass="content markdown animated fadeIn slower"> |
| 79 | + <divclass="content markdown animated fadeIn"> |
78 | 80 | <%-page.content%> |
79 | 81 | <!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]--> |
80 | | - <audioid="audio"loop="1"preload="auto"controls="controls"data-autoplay="<%- theme.autoplay || page.autoplay ||"false" %>"> |
| 82 | + <audioid="audio"loop="1"preload="auto"controls="controls" |
| 83 | +data-autoplay="<%- theme.autoplay || page.autoplay ||"false" %>"> |
81 | 84 | <sourcetype="audio/mpeg"src="<%- page.mp3 %>"> |
82 | 85 | </audio> |
83 | 86 | <%if (page.mp3==''|page.mp3==null){%> |
84 | | -<ul id="audio-list" style="display:none"> |
85 | | -<%for (var iintheme.mp3){%> |
86 | | -<%if (theme.mp3[i].indexOf('http')==0){%> |
87 | | -<li title='<%- i %>' data-url='<%- theme.mp3[i] %>'></li> |
88 | | -<%}else {%> |
89 | | -<li title='<%- i %>' data-url='<%- config.root + theme.mp3[i] %>'></li> |
90 | | -<%}%> |
| 87 | +<ul id="audio-list" style="display:none"> |
| 88 | +<%for (var iintheme.mp3){%> |
| 89 | +<%if (theme.mp3[i].indexOf('http')==0){%> |
| 90 | +<li title='<%- i %>' data-url='<%- theme.mp3[i] %>'></li> |
| 91 | +<%}else {%> |
| 92 | +<li title='<%- i %>' data-url='<%- config.root + theme.mp3[i] %>'></li> |
| 93 | +<%}%> |
91 | 94 | <%}%> |
92 | | -</ul> |
| 95 | +</ul> |
93 | 96 | <%}%> |
94 | 97 | <%if (theme.gitalk.enable==true){%> |
95 | | -<%-partial('gitalk', {post: page})%> |
| 98 | +<%-partial('gitalk', {post: page})%> |
96 | 99 | <% }%> |
97 | 100 | <%if (theme.valine.enable==true){%> |
98 | | -<div id="vcomments"></div> |
| 101 | +<div id="vcomments"></div> |
99 | 102 | <% }%> |
100 | 103 | </div> |
101 | 104 | <divclass="sidebar"> |
|
105 | 108 | <p><%-config.author%></p> |
106 | 109 | <span><%-theme.descriptionOne%></span> |
107 | 110 | <dl> |
108 | | - <dd><ahref="<%- theme.socials.github %>"target="_blank"><spanclass=" iconfont icon-github"></span></a></dd> |
109 | | - <dd><ahref="<%- theme.socials.twitter %>"target="_blank"><spanclass=" iconfont icon-twitter"></span></a></dd> |
110 | | - <dd><ahref="<%- theme.socials.stackoverflow %>"target="_blank"><spanclass=" iconfont icon-stack-overflow"></span></a></dd> |
| 111 | + <dd><ahref="<%- theme.socials.github %>"target="_blank"><span |
| 112 | +class=" iconfont icon-github"></span></a></dd> |
| 113 | + <dd><ahref="<%- theme.socials.twitter %>"target="_blank"><span |
| 114 | +class=" iconfont icon-twitter"></span></a></dd> |
| 115 | + <dd><ahref="<%- theme.socials.stackoverflow %>"target="_blank"><span |
| 116 | +class=" iconfont icon-stack-overflow"></span></a></dd> |
111 | 117 | </dl> |
112 | 118 | </div> |
113 | 119 | <ul> |
|
117 | 123 | </ul> |
118 | 124 | </div> |
119 | 125 | <%if (theme.TOC==true) {%> |
120 | | -<% toc=toc(page.content, {list_number:true})%> |
121 | | -<%if (toc.length>1) {%> |
122 | | -<divclass="box sticky animated fadeInRight faster"> |
123 | | -<div id="toc"class="subbox"> |
124 | | -<h4><%=__('toc')%></h4> |
125 | | -<%- toc%> |
126 | | -</div> |
127 | | -</div> |
128 | | -<%}%> |
| 126 | +<% toc=toc(page.content, {list_number:true, max_depth:3})%> |
| 127 | +<%if (toc.length>1) {%> |
| 128 | +<divclass="box sticky animated fadeInRight faster"> |
| 129 | +<div id="toc"class="subbox"> |
| 130 | +<h4><%=__('toc')%></h4> |
| 131 | +<%- toc%> |
| 132 | +</div> |
| 133 | +</div> |
| 134 | +<%}%> |
129 | 135 | <%}%> |
130 | 136 | </div> |
131 | 137 | </div> |
132 | 138 | </div> |
133 | | - |
|