兼容性调整

This commit is contained in:
结发受长生
2018-06-08 10:48:48 +08:00
parent e7c6945df4
commit 9fa331206c
15 changed files with 226 additions and 286 deletions
+14 -34
View File
@@ -11,9 +11,6 @@
<div class="article-entry" itemprop="articleBody">
<% if (post.excerpt && index){ %>
<%- post.excerpt %>
<% if (theme.excerpt_link) { %>
<a class="article-more-a" href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %> >></a>
<% } %>
<% } else { %>
<%- post.content %>
<% } %>
@@ -78,24 +75,7 @@
<% } %>
<%- partial('_partial/aside') %>
<% if (!index && post.comments){ %>
<% if (theme.duoshuo){ %>
<%- partial('post/duoshuo', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% if (theme.wangyiyun){ %>
<%- partial('post/wangyiyun', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
<% if (theme.changyan_appid && theme.changyan_conf){ %>
<%- partial('post/changyan', {
key: post.slug,
@@ -105,21 +85,21 @@
<% } %>
<% if (theme.disqus || config.disqus_shortname){ %>
<section id="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '<%= theme.disqus || config.disqus_shortname %>'; // required: replace example with your forum shortname
<section id="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '<%= theme.disqus || config.disqus_shortname %>'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>
<% } %>
<% if(theme.gitalk.enable){ %>
+2 -6
View File
@@ -15,12 +15,8 @@
<% if (theme.subtitle){ %>
<p class="header-subtitle"><i class="icon icon-quo-left"></i><%=theme.subtitle%><i class="icon icon-quo-right"></i></p>
<% } %>
<% var count = 0%>
<% for (var i in theme.menu){ %>
<% count++ %>
<% } %>
<% var ulWidth = count > 2 ? '70%' : '50%' %>
<% var count = Object.keys(theme.menu).length
var ulWidth = count > 2 ? '70%' : '50%' %>
<nav class="header-nav">
<div class="social">
<% for (var i in theme.subnav){ %>
@@ -1,10 +0,0 @@
<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>
+1 -1
View File
@@ -1 +1 @@
<%- js('js/mobile.04379a910e1ff32f2a41.js') %> <%- js('js/slider.a725c75e59c2eeae98e0.js') %> <%- js('js/main.254cebd259c4777bdd2e.js') %>
<%- js('js/mobile.ea63a7925e7ff5c87e64.js') %> <%- js('js/slider.6142a9af4c6883a7d429.js') %> <%- js('js/main.361198a3fa95601c34df.js') %>
+1 -1
View File
@@ -121,7 +121,7 @@
<%if(hasAboutme){%>
<section class="tools-section tools-section-me" v-show="aboutme">
<%if(theme.aboutme){%>
<div class="aboutme-wrap" id="js-aboutme"><%=theme.aboutme%></div>
<div class="aboutme-wrap" id="js-aboutme"><%-theme.aboutme%></div>
<%}%>
</section>
<%}%>