Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copyright session #1667

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ post_copyright:
enable: false
license: CC BY-NC-SA 3.0
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/
history_url: https://github.com/Jacksgong/Blog/commits/master/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why your link?

feature_prefix: 本文已发布到JacksBlog公众号 -
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not English again?




Expand Down
2 changes: 2 additions & 0 deletions languages/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ post:
copyright:
author: Post author
link: Post link
feature: Post feature
history: Post history
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/fr-FR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ post:
copyright:
author: Автор записи
link: Ссылка на запись
history: История сообщений
feature: Почтовая функция
license_title: Информация об авторских правах
license_content: 'Все записи на этом сайте защищены лицензией
<a href="%s" rel="external nofollow" target="_blank">%s</a> если не указано дополнительно.'
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-Hans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ post:
copyright:
author: 本文作者
link: 本文链接
history: 本文历史
feature: 本文特稿
license_title: 版权声明
license_content: '本博客所有文章除特别声明外,均采用
<a href="%s" rel="external nofollow" target="_blank">%s</a> 许可协议。转载请注明出处!'
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-hk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ post:
copyright:
author: Post author
link: Post link
history: Post history
feature: Post feature
license_title: Copyright Notice
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
Expand Down
10 changes: 10 additions & 0 deletions layout/_macro/post-copyright.swig
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>
{{ config.author }}
</li>
<li class="post-copyright-history">
<strong>{{ __('post.copyright.history') + __('symbol.colon') }} </strong>
<a href="{{ theme.post_copyright.history_url + 'source/_posts/' + String(post.path).split('/')[String(post.path).split('/').length -2] + '.md'}}" title="{{ '《' + post.title + '》'+ '在Github上的迭代日志'}}" target = "_blank">{{ '本文在Github上的迭代日志'}}</a>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if i selfhosted?

</li>
<li class="post-copyright-link">
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.permalink }}</a>
</li>
{% if post.wechatmpurl %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From where get this variable?

<li class="post-copyright-wechatmp">
<strong>{{ __('post.copyright.feature') + __('symbol.colon') }}</strong>
{{ theme.post_copyright.feature_prefix }}<a href="{{ post.wechatmpurl }}" target = "_blank"> {{ '《' + post.wechatmptitle + '》' }} </a>
</li>
{% endif %}
<li class="post-copyright-license">
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }}
Expand Down