新主题
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<% if (post.categories && post.categories.length){ %>
|
||||
<div class="article-category tagcloud">
|
||||
<i class="icon-book icon"></i>
|
||||
<ul class="article-tag-list">
|
||||
<% post.categories.forEach(function(category, i){ %>
|
||||
<li class="article-tag-list-item">
|
||||
<a href="javascript:void(0);" class="js-tag article-tag-list-link color<%= category.name.length % 5 + 1 %>"><%-category.name%></a>
|
||||
</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div id="SOHUCS" sid="<%=key%>" ></div>
|
||||
<script charset="utf-8" type="text/javascript" src="//changyan.sohu.com/upload/changyan.js" ></script>
|
||||
<script type="text/javascript">
|
||||
window.changyan.api.config({
|
||||
appid: "<%=theme.changyan_appid%>",
|
||||
conf: "<%=theme.changyan_conf%>"
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
|
||||
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><i class="icon-calendar icon"></i><%= date(post.date, date_format) %></time>
|
||||
</a>
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="duoshuo">
|
||||
<!-- 多说评论框 start -->
|
||||
<div class="ds-thread" data-thread-key="<%=key%>" data-title="<%=title%>" data-url="<%=url%>"></div>
|
||||
<!-- 多说评论框 end -->
|
||||
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
|
||||
<script type="text/javascript">
|
||||
var duoshuoQuery = {short_name:"<%=theme.duoshuo%>"};
|
||||
(function() {
|
||||
var ds = document.createElement('script');
|
||||
ds.type = 'text/javascript';ds.async = true;
|
||||
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
|
||||
ds.charset = 'UTF-8';
|
||||
(document.getElementsByTagName('head')[0]
|
||||
|| document.getElementsByTagName('body')[0]).appendChild(ds);
|
||||
})();
|
||||
</script>
|
||||
<!-- 多说公共JS代码 end -->
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<div id="gitment-ctn"></div>
|
||||
<link rel="stylesheet" href="//imsun.github.io/gitment/style/default.css">
|
||||
<script src="//imsun.github.io/gitment/dist/gitment.browser.js"></script>
|
||||
<script>
|
||||
(function(){
|
||||
new Gitment({
|
||||
id: "<%=url%>",
|
||||
owner: '<%=theme.gitment_owner%>',
|
||||
repo: '<%=theme.gitment_repo%>',
|
||||
oauth: {
|
||||
client_id: '<%=theme.gitment_oauth.client_id%>',
|
||||
client_secret: '<%=theme.gitment_oauth.client_secret%>'
|
||||
}
|
||||
}).render('gitment-ctn')
|
||||
})()
|
||||
</script>
|
||||
@@ -0,0 +1,22 @@
|
||||
<% if (post.prev || post.next){ %>
|
||||
<nav id="article-nav">
|
||||
<% if (post.prev){ %>
|
||||
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
|
||||
<i class="icon-circle-left"></i>
|
||||
<div class="article-nav-title">
|
||||
<% if (post.prev.title){ %>
|
||||
<%= post.prev.title %>
|
||||
<% } else { %>
|
||||
(no title)
|
||||
<% } %>
|
||||
</div>
|
||||
</a>
|
||||
<% } %>
|
||||
<% if (post.next){ %>
|
||||
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
|
||||
<div class="article-nav-title"><%= post.next.title %></div>
|
||||
<i class="icon-circle-right"></i>
|
||||
</a>
|
||||
<% } %>
|
||||
</nav>
|
||||
<% } %>
|
||||
@@ -0,0 +1,53 @@
|
||||
<%
|
||||
var sUrl = url.replace(/index\.html$/, '');
|
||||
sUrl = /^(http:|https:)\/\//.test(sUrl) ? sUrl : 'http:' + sUrl;
|
||||
%>
|
||||
<div class="share-btn share-icons tooltip-left">
|
||||
<div class="tooltip tooltip-east">
|
||||
<span class="tooltip-item">
|
||||
<a href="javascript:;" class="share-sns share-outer">
|
||||
<i class="icon icon-share"></i>
|
||||
</a>
|
||||
</span>
|
||||
<span class="tooltip-content">
|
||||
<div class="share-wrap">
|
||||
<div class="share-icons">
|
||||
<a class="weibo share-sns" href="javascript:;" data-type="weibo">
|
||||
<i class="icon icon-weibo"></i>
|
||||
</a>
|
||||
<a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
|
||||
<i class="icon icon-weixin"></i>
|
||||
</a>
|
||||
<a class="qq share-sns" href="javascript:;" data-type="qq">
|
||||
<i class="icon icon-qq"></i>
|
||||
</a>
|
||||
<a class="douban share-sns" href="javascript:;" data-type="douban">
|
||||
<i class="icon icon-douban"></i>
|
||||
</a>
|
||||
<a class="qzone share-sns" href="javascript:;" data-type="qzone">
|
||||
<i class="icon icon-qzone"></i>
|
||||
</a>
|
||||
<a class="facebook share-sns" href="javascript:;" data-type="facebook">
|
||||
<i class="icon icon-facebook"></i>
|
||||
</a>
|
||||
<a class="twitter share-sns" href="javascript:;" data-type="twitter">
|
||||
<i class="icon icon-twitter"></i>
|
||||
</a>
|
||||
<a class="google share-sns" href="javascript:;" data-type="google">
|
||||
<i class="icon icon-google"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page-modal wx-share js-wx-box">
|
||||
<a class="close js-modal-close" href="javascript:;"><i class="icon icon-close"></i></a>
|
||||
<p>扫一扫,分享到微信</p>
|
||||
<div class="wx-qrcode">
|
||||
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : '//pan.baidu.com/share/qrcode?url=' + sUrl %>" alt="微信分享二维码">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mask js-mask"></div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<% if (post.tags && post.tags.length){ %>
|
||||
<div class="article-tag tagcloud">
|
||||
<i class="icon-price-tags icon"></i>
|
||||
<ul class="article-tag-list">
|
||||
<% post.tags.forEach(function(tag, i){ %>
|
||||
<li class="article-tag-list-item">
|
||||
<a href="javascript:void(0)" class="js-tag article-tag-list-link color<%= tag.name.length % 5 + 1 %>"><%-tag.name%></a>
|
||||
</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -0,0 +1,15 @@
|
||||
<% if (post.link){ %>
|
||||
<h1 itemprop="name">
|
||||
<a class="<%= class_name %>" href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><%= post.title %></a>
|
||||
</h1>
|
||||
<% } else if (post.title){ %>
|
||||
<% if (index){ %>
|
||||
<h1 itemprop="name">
|
||||
<a class="<%= class_name %>" href="<%- url_for(post.path) %>"><%= post.title %></a>
|
||||
</h1>
|
||||
<% } else { %>
|
||||
<h1 class="<%= class_name %>" itemprop="name">
|
||||
<%= post.title %>
|
||||
</h1>
|
||||
<% } %>
|
||||
<% } %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
|
||||
<script>
|
||||
var cloudTieConfig = {
|
||||
url: "<%=url%>",
|
||||
sourceId: "<%=key%>",
|
||||
productKey: "<%=theme.wangyiyun%>",
|
||||
target: "cloud-tie-wrapper"
|
||||
};
|
||||
</script>
|
||||
<script src="//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
|
||||
Reference in New Issue
Block a user