标签修改
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<% if (theme.google_analytics){ %>
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '<%= theme.google_analytics %>', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
<% } %>
|
||||
|
||||
<% if (theme.tencent_analytics){ %>
|
||||
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=<%= theme.tencent_analytics %>" charset="UTF-8"></script>
|
||||
<% } %>
|
||||
@@ -0,0 +1,66 @@
|
||||
<%
|
||||
var pageId = page.path;
|
||||
var pageUrl = page.permalink;
|
||||
var pageTitle = page.title;
|
||||
%>
|
||||
|
||||
<% if (theme.disqus_shortname && page.comments){ %>
|
||||
<section id="comment">
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
var disqus_config = function() {
|
||||
this.page.url = '<%= pageUrl %>';
|
||||
this.page.identifier = '<%= pageId %>';
|
||||
};
|
||||
(function() {
|
||||
var d = document,
|
||||
s = d.createElement('script');
|
||||
s.src = '//<%= theme.disqus_shortname %>.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', + new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the
|
||||
<a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
|
||||
</noscript>
|
||||
</section>
|
||||
<% } else if (theme.duoshuo_shortname && page.comments){ %>
|
||||
<section id="comment">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<!-- Duoshuo Comment BEGIN -->
|
||||
<div class="ds-thread" data-thread-key="<%= pageId %>" data-title="<%= pageTitle %>" data-url="<%= pageUrl %>"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
console.log(document.querySelector('.ds-thread'));
|
||||
var duoshuoQuery = {
|
||||
short_name: '<%= theme.duoshuo_shortname %>'
|
||||
};
|
||||
(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>
|
||||
<!-- Duoshuo Comment END -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<% } else if (theme.yungentie_product_key && page.comments){ %>
|
||||
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
|
||||
<script>
|
||||
var cloudTieConfig = {
|
||||
url: document.location.href,
|
||||
sourceId: "",
|
||||
productKey: "<%= theme.yungentie_product_key %>",
|
||||
target: "cloud-tie-wrapper"
|
||||
};
|
||||
</script>
|
||||
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
|
||||
<% } %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<% if (theme.mathjax) { %>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
|
||||
</script>
|
||||
<% } %>
|
||||
@@ -0,0 +1,8 @@
|
||||
<noscript>
|
||||
<div class="noscript">
|
||||
<p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能,请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
|
||||
</div>
|
||||
</noscript>
|
||||
<div class="noscript">
|
||||
<p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能,请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<% if (theme.page_stat) { %>
|
||||
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
|
||||
</script>
|
||||
<div class="site-visitors-container white-text">
|
||||
<span>
|
||||
<i class="fa fa-user"></i>
|
||||
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
|
||||
</span>
|
||||
<span> | </span>
|
||||
<span>
|
||||
<i class="fa fa-eye"></i>
|
||||
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
|
||||
</span>
|
||||
</div>
|
||||
<% } %>
|
||||
Reference in New Issue
Block a user