Skip to content

Commit 173ac94

Browse files
committed
Update template.
1 parent 42639bd commit 173ac94

File tree

8 files changed

+34
-19
lines changed

8 files changed

+34
-19
lines changed

build/compile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,16 @@ CreateDatajs('./.deploy/js/dt.js',function(dt_path,arr){
9595
ReadTmpToHTML('/template/list.ejs','/.deploy/list.html',null,{
9696
p:'/list.html',
9797
n:'搜索',
98-
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。'
98+
d: '最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
99+
command_length: arr.length
99100
});
100101

101102
ReadTmpToHTML('/template/hot.ejs','/.deploy/hot.html',null,{
102-
p:'/hot.html',
103-
n:'搜索',
104-
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
105-
arr:arr
103+
p:'/hot.html',
104+
n:'搜索',
105+
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
106+
arr: arr,
107+
command_length: arr.length
106108
});
107109
// 文章批量生成
108110
arr.forEach(function(itm,idx){

template/details.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
{{content}}
1414
</div>
1515

16-
<%- include('footer'); %>
16+
<%- include('footer',{type: "list"}); %>

template/footer.ejs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<div class="footer <%if(type=='index'){%> footer_index <%}%>">
2+
收藏本站请使用Ctrl+D或者Command+d
3+
<br />
4+
<a target="_blank" href="https://github.com/jaywcjlove/linux-command/new/master/command">添加命令</a> |
5+
<a href="hot.html">命令列表</a> |
6+
<a href="https://github.com/jaywcjlove/oscnews">Chrome 插件</a>
7+
<br> 共搜集到
8+
<span id="commands_info">
9+
<%=describe.command_length?describe.command_length:''%>
10+
</span> 个Linux命令
11+
</div>
112
<script>
213
var _hmt = _hmt || []; (function() {var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?a542c0213a9aa8ae29fccdc8a18b91ef"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
314
<script type="text/javascript" src="<%=relative_path%>js/dt.js?v=<%=new Date().getTime()%>"></script>

template/hot.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
</ul>
1111
</div>
1212

13-
<%- include('footer'); %>
13+
<%- include('footer',{type: 'list'}); %>

template/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
<%- include('header'); %>
33
<%- include('search',{type: "index"}); %>
4-
<%- include('footer'); %>
4+
<%- include('footer',{type: "index"}); %>

template/list.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
</ul>
1212
</div>
1313

14-
<%- include('footer'); %>
14+
<%- include('footer',{type: 'list'}); %>

template/search.ejs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,4 @@
1515
<button id="search_btn">搜索</button>
1616
</div>
1717
</div>
18-
<div class="footer">
19-
收藏本站请使用Ctrl+D或者Command+d<br>
20-
共搜集到 <span id="commands_info"><%=describe.command_length?describe.command_length:''%></span> 个Linux命令 <a target="_blank" href="https://github.com/jaywcjlove/linux-command/new/master/command">添加命令</a> | <a href="hot.html">命令列表</a>
21-
</div>
2218
</div>

template/styl/index.styl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,18 @@ a{
175175
}
176176
}
177177
}
178-
.footer{
179-
text-align center
180-
padding-top 31px
181-
color #616161
182-
font-size 14px
183-
font-weight 300
178+
}
179+
180+
.footer{
181+
text-align center
182+
padding-top 31px
183+
color #616161
184+
font-size 14px
185+
font-weight 300
186+
border-top: 1px solid #efefef;
187+
padding-bottom: 50px;
188+
&.footer_index {
189+
border-top: 0
184190
}
185191
}
186192

0 commit comments

Comments
 (0)