Permalink
Browse files

style: remove toc and copyright info in pages 去除页面中的目录和版权信息

Show toc and copyright info only in post.
只在文章页显示目录和版权信息。
  • Loading branch information...
MOxFIVE committed Nov 17, 2015
1 parent 51645e6 commit 5b9cb4fd87a89934ce57913db3278a78c27326d6
Showing with 2 additions and 2 deletions.
  1. +1 −1 layout/_partial/article.ejs
  2. +1 −1 layout/_partial/post/nav.ejs
@@ -52,7 +52,7 @@
<%- partial('post/nav') %>
<% } %>
</article>
<% if (!index && post.toc != false){ %>
<% if (!index && post.toc != false && !is_page()){ %>

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Nov 18, 2015

Owner

if (is_post() && post.toc != false)

@MOxFIVE

MOxFIVE Nov 18, 2015

Owner

if (is_post() && post.toc != false)

<%- partial('_partial/toc') %>
<% } %>
<% if (!index && theme.share){ %>
@@ -1,4 +1,4 @@
<% if (post.original != false){ %>
<% if (post.original != false && !is_page()){ %>
<div class="copyright">
<p><span>本文标题:</span><a href="<%- url_for(post.path) %>"><%= post.title %></a></p>
<p><span>文章作者:</span><a href="/" title="访问 <%=theme.author%> 的个人博客"><%=theme.author%></a></p>

0 comments on commit 5b9cb4f

Please sign in to comment.