可关闭特定文章或页面的版权显示和分享按钮。
添加 no_copyright: true 和 no_sharing: true 可关闭特定文章或页面的版权显示和分享按钮。
This commit is contained in:
parent
b9284527ec
commit
09b657370f
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
<!-- copyright -->
|
<!-- copyright -->
|
||||||
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 &&
|
<% if (((theme.copyright_type === 2) || (theme.copyright_type === 1 &&
|
||||||
post.copyright)) && !index){ %>
|
post.copyright)) && !index && !post.no_copyright){ %>
|
||||||
<div class="declare">
|
<div class="declare">
|
||||||
<ul class="post-copyright">
|
<ul class="post-copyright">
|
||||||
<li>
|
<li>
|
||||||
@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<footer class="article-footer">
|
<footer class="article-footer">
|
||||||
<% if (!index && theme.share_enable){ %> <%- partial('post/share') %> <% }
|
<% if (!index && theme.share_enable && !post.no_sharing){ %> <%- partial('post/share') %> <% }
|
||||||
%> <%- partial('post/tag') %>
|
%> <%- partial('post/tag') %>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user