Skip to content

Commit

Permalink
Update template.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 24, 2018
1 parent 42639bd commit 173ac94
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 19 deletions.
12 changes: 7 additions & 5 deletions build/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ CreateDatajs('./.deploy/js/dt.js',function(dt_path,arr){
ReadTmpToHTML('/template/list.ejs','/.deploy/list.html',null,{
p:'/list.html',
n:'搜索',
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。'
d: '最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
command_length: arr.length
});

ReadTmpToHTML('/template/hot.ejs','/.deploy/hot.html',null,{
p:'/hot.html',
n:'搜索',
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
arr:arr
p:'/hot.html',
n:'搜索',
d:'最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。',
arr: arr,
command_length: arr.length
});
// 文章批量生成
arr.forEach(function(itm,idx){
Expand Down
2 changes: 1 addition & 1 deletion template/details.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
{{content}}
</div>

<%- include('footer'); %>
<%- include('footer',{type: "list"}); %>
11 changes: 11 additions & 0 deletions template/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<div class="footer <%if(type=='index'){%> footer_index <%}%>">
收藏本站请使用Ctrl+D或者Command+d
<br />
<a target="_blank" href="https://github.com/jaywcjlove/linux-command/new/master/command">添加命令</a> |
<a href="hot.html">命令列表</a> |
<a href="https://github.com/jaywcjlove/oscnews">Chrome 插件</a>
<br> 共搜集到
<span id="commands_info">
<%=describe.command_length?describe.command_length:''%>
</span> 个Linux命令
</div>
<script>
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>
<script type="text/javascript" src="<%=relative_path%>js/dt.js?v=<%=new Date().getTime()%>"></script>
Expand Down
2 changes: 1 addition & 1 deletion template/hot.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
</ul>
</div>

<%- include('footer'); %>
<%- include('footer',{type: 'list'}); %>
2 changes: 1 addition & 1 deletion template/index.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<%- include('header'); %>
<%- include('search',{type: "index"}); %>
<%- include('footer'); %>
<%- include('footer',{type: "index"}); %>
2 changes: 1 addition & 1 deletion template/list.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
</ul>
</div>

<%- include('footer'); %>
<%- include('footer',{type: 'list'}); %>
4 changes: 0 additions & 4 deletions template/search.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@
<button id="search_btn">搜索</button>
</div>
</div>
<div class="footer">
收藏本站请使用Ctrl+D或者Command+d<br>
共搜集到 <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>
</div>
</div>
18 changes: 12 additions & 6 deletions template/styl/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,18 @@ a{
}
}
}
.footer{
text-align center
padding-top 31px
color #616161
font-size 14px
font-weight 300
}

.footer{
text-align center
padding-top 31px
color #616161
font-size 14px
font-weight 300
border-top: 1px solid #efefef;
padding-bottom: 50px;
&.footer_index {
border-top: 0
}
}

Expand Down

0 comments on commit 173ac94

Please sign in to comment.