feat: front matter adds the `copyright_info` setting item (#196)

This commit is contained in:
XPoet 2023-01-13 11:02:18 +08:00
parent 5ee42c0605
commit c1921cc851
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@
<%- page.content %> <%- page.content %>
</div> </div>
<% if (theme.post?.copyright_info === true || theme?.copyright_info?.enable === true) { %> <% if (
(theme.post?.copyright_info === true || theme?.copyright_info?.enable === true) && page?.copyright_info !== false
) { %>
<div class="post-copyright-info"> <div class="post-copyright-info">
<%- partial('_partial/article-copyright-info') %> <%- partial('_partial/article-copyright-info') %>
</div> </div>