Skip to content

Commit

Permalink
style: remove toc and copyright info in pages 去除页面中的目录和版权信息
Browse files Browse the repository at this point in the history
Show toc and copyright info only in post.
只在文章页显示目录和版权信息。
  • Loading branch information
MOxFIVE committed Nov 17, 2015
1 parent 51645e6 commit 5b9cb4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/_partial/article.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@MOxFIVE

MOxFIVE Nov 18, 2015

Author Owner

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

<%- partial('_partial/toc') %>
<% } %>
<% if (!index && theme.share){ %>
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/post/nav.ejs
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 5b9cb4f

Please sign in to comment.