主题改造 归档页面

This commit is contained in:
结发受长生
2018-05-17 17:29:42 +08:00
parent d96d550776
commit f5505a48cf
16 changed files with 136 additions and 96 deletions
@@ -3,7 +3,7 @@
<% site.categories.forEach(function(cat){ %>
<li>
<a href="<%= url_for(cat.path) %>"><%= cat.name %></a>
<span class="badge">(<%= cat.length %>)</span>
<span class="badge"><%= cat.length %></span>
</li>
<% }); %>
</ul>
@@ -1,11 +1,8 @@
<!-- 文章分类 -->
<!-- 友情链接 -->
<ul class="widget-bd">
<%
var list = theme.friends['list'];
for (var i in list) {
%>
<li>
<a href="<%= list[i].link %>" target="_blank" title="<%= list[i].title %>"><%= list[i].name %></a>
</li>
<% } %>
<% for (var i in theme.friends['list']) { %>
<li>
<a href="<%= list[i].link %>" target="_blank" title="<%= theme.friends['list'][i].title %>"><%= theme.friends['list'][i].name %></a>
</li>
<% } %>
</ul>
@@ -5,7 +5,7 @@
max_font: 30,
amount: 999,
color: true,
start_color: '#e87474',
end_color: '#524ac5',
start_color: '#'+theme.tagcloud.start_color,
end_color: '#'+theme.tagcloud.end_color
}) %>
</div>
@@ -1,29 +0,0 @@
<div class="widget-bd" style="position: relative;">
<div id="myWeiboLoading" class="text-center" style="position:absolute;top:0;left:0;right:0;bottom:0;line-height:50px;font-size:12px;background-color:#fff;z-index:9;">微博加载中...</div>
<%- theme.weibo_show.code %>
<script>
(function () {
var oMyWeibo = document.getElementById('myWeibo');
var oMyWeiboLoading = document.getElementById('myWeiboLoading');
var isIE = /msie/i.test(navigator.userAgent) && !window.opera;
var timer = null;
if (isIE) {
oMyWeibo.onreadystatechange = function(){
if(oMyWeibo.readyState === 'loaded' || oMyWeibo.readyState === 'complete'){
timer = setTimeout(function () {
oMyWeiboLoading.parentNode.removeChild(oMyWeiboLoading);
timer = null;
}, 300);
}
};
} else {
oMyWeibo.onload = function () {
timer = setTimeout(function () {
oMyWeiboLoading.parentNode.removeChild(oMyWeiboLoading);
timer = null;
}, 300);
};
}
})();
</script>
</div>