Update template.
This commit is contained in:
parent
42639bd453
commit
173ac9463d
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@
|
|||
{{content}}
|
||||
</div>
|
||||
|
||||
<%- include('footer'); %>
|
||||
<%- include('footer',{type: "list"}); %>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<%- include('footer'); %>
|
||||
<%- include('footer',{type: 'list'}); %>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<%- include('header'); %>
|
||||
<%- include('search',{type: "index"}); %>
|
||||
<%- include('footer'); %>
|
||||
<%- include('footer',{type: "index"}); %>
|
||||
|
|
@ -11,4 +11,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<%- include('footer'); %>
|
||||
<%- include('footer',{type: 'list'}); %>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue