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