Skip to content

Commit

Permalink
feat: front matter adds the copyright_info setting item (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Jan 13, 2023
1 parent 5ee42c0 commit c1921cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/article-content.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<%- page.content %>
</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">
<%- partial('_partial/article-copyright-info') %>
</div>
Expand Down

0 comments on commit c1921cc

Please sign in to comment.