From 5f6fa42ae66c6241b22dbf9d1438703082b3272c Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 4 Jun 2022 18:56:31 +0800 Subject: [PATCH] feat: add copyright setting for post --- layout/_macro/post.swig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index 39ddd41e31..4ffd441a1c 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -222,8 +222,10 @@ {{ partial('_partials/post/post-reward.swig') }} {%- endif %} - {%- if theme.creative_commons.license and theme.creative_commons.post %} - {{ partial('_partials/post/post-copyright.swig') }} + {%- if post.copyright !== false %} + {%- if theme.creative_commons.license and theme.creative_commons.post %} + {{ partial('_partials/post/post-copyright.swig') }} + {%- endif %} {%- endif %} {%- if theme.follow_me %}