Support reprint (#618)

This commit is contained in:
Ouyang Chunhui 2023-03-31 22:18:18 +08:00 committed by GitHub
parent 1501440d8d
commit ff3f89f53b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -41,6 +41,7 @@ post:
post_link: This article originally appeared on
license_title: Copyright Notice
license_content: "All articles in this blog are licensed under %s unless stating additionally."
license_content_reprint: "This article is a reprinted article and has been reprinted with permission. Please indicate the source!"
footer:
powered: "Powered by %s"

View File

@ -22,8 +22,13 @@
{%- endif %}
</li>
<li class="post-copyright-license">
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{- __('post.copyright.license_content', next_url(ccURL, ccIcon + ccText)) }}
{%- if page.copyright_reprint %}
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{- __('post.copyright.license_content_reprint', next_url(ccURL, ccIcon + ccText)) }}
{%- else %}
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{- __('post.copyright.license_content', next_url(ccURL, ccIcon + ccText)) }}
{%- endif %}
</li>
</ul>
</div>