From 9fa331206c058aa315b7a7083cb8d8255dba596f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Fri, 8 Jun 2018 10:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/layout/_partial/article.ejs | 48 ++--- themes/yilia/layout/_partial/mobile-nav.ejs | 8 +- .../yilia/layout/_partial/post/wangyiyun.ejs | 10 - themes/yilia/layout/_partial/script.ejs | 2 +- themes/yilia/layout/_partial/tools.ejs | 2 +- themes/yilia/source-src/js/anm.js | 5 +- themes/yilia/source-src/js/aside.js | 76 ++++---- themes/yilia/source-src/js/browser.js | 36 ++-- themes/yilia/source-src/js/fix.js | 13 +- themes/yilia/source-src/js/main.js | 6 +- themes/yilia/source-src/js/mobile.js | 10 +- themes/yilia/source-src/js/share.js | 112 ++++++------ themes/yilia/source-src/js/slider.js | 2 +- themes/yilia/source-src/js/util.js | 172 +++++++++--------- themes/yilia/source-src/js/viewer.js | 10 +- 15 files changed, 226 insertions(+), 286 deletions(-) delete mode 100644 themes/yilia/layout/_partial/post/wangyiyun.ejs diff --git a/themes/yilia/layout/_partial/article.ejs b/themes/yilia/layout/_partial/article.ejs index 4fee213..fe7ceef 100644 --- a/themes/yilia/layout/_partial/article.ejs +++ b/themes/yilia/layout/_partial/article.ejs @@ -11,9 +11,6 @@
<% if (post.excerpt && index){ %> <%- post.excerpt %> - <% if (theme.excerpt_link) { %> - <%= theme.excerpt_link %> >> - <% } %> <% } 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){ %> -
-
- - -
+ /* * * 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); + })(); + + + <% } %> <% if(theme.gitalk.enable){ %> diff --git a/themes/yilia/layout/_partial/mobile-nav.ejs b/themes/yilia/layout/_partial/mobile-nav.ejs index 6ece96a..8e2f0c9 100644 --- a/themes/yilia/layout/_partial/mobile-nav.ejs +++ b/themes/yilia/layout/_partial/mobile-nav.ejs @@ -15,12 +15,8 @@ <% if (theme.subtitle){ %>

<%=theme.subtitle%>

<% } %> - <% 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%' %>