可关闭特定文章或页面的版权显示和分享按钮。

添加 no_copyright: true 和 no_sharing: true 可关闭特定文章或页面的版权显示和分享按钮。
This commit is contained in:
边宇琨 2020-09-10 00:58:38 +08:00 committed by GitHub
parent b9284527ec
commit 09b657370f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>