mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Support reprint statement (#89)
This commit is contained in:
parent
402c34e9bb
commit
a78d0ea2ff
@ -36,6 +36,8 @@ post:
|
|||||||
copyright:
|
copyright:
|
||||||
author: Post author
|
author: Post author
|
||||||
link: Post link
|
link: Post link
|
||||||
|
post_author: Written by
|
||||||
|
post_link: This article originally appeared on
|
||||||
license_title: Copyright Notice
|
license_title: Copyright Notice
|
||||||
license_content: "All articles in this blog are licensed under %s unless stating additionally."
|
license_content: "All articles in this blog are licensed under %s unless stating additionally."
|
||||||
|
|
||||||
|
|||||||
@ -4,12 +4,22 @@
|
|||||||
<div class="post-copyright">
|
<div class="post-copyright">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="post-copyright-author">
|
<li class="post-copyright-author">
|
||||||
|
{%- if page.author %}
|
||||||
|
<strong>{{ __('post.copyright.post_author') + __('symbol.colon') }} </strong>
|
||||||
|
{{- page.author }}
|
||||||
|
{%- elif author %}
|
||||||
<strong>{{ __('post.copyright.author') + __('symbol.colon') }} </strong>
|
<strong>{{ __('post.copyright.author') + __('symbol.colon') }} </strong>
|
||||||
{{- page.author or author }}
|
{{- author }}
|
||||||
|
{%- endif %}
|
||||||
</li>
|
</li>
|
||||||
<li class="post-copyright-link">
|
<li class="post-copyright-link">
|
||||||
|
{%- if page.post_link %}
|
||||||
|
<strong>{{ __('post.copyright.post_link') + __('symbol.colon') }}</strong>
|
||||||
|
{{ next_url(page.post_link, page.post_link, {title: page.title}) }}
|
||||||
|
{%- else %}
|
||||||
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
|
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
|
||||||
{{ next_url(page.permalink, page.permalink, {title: page.title}) }}
|
{{ next_url(page.permalink, page.permalink, {title: page.title}) }}
|
||||||
|
{%- endif %}
|
||||||
</li>
|
</li>
|
||||||
<li class="post-copyright-license">
|
<li class="post-copyright-license">
|
||||||
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
|
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user