-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
base: master
Are you sure you want to change the base?
Copyright session #1667
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think need to add switches on this 2 new features. They must be not hardcoded.
<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 %} |
There was a problem hiding this comment.
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?
@@ -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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if i selfhosted?
@@ -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/ | |||
feature_prefix: 本文已发布到JacksBlog公众号 - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not English again?
@@ -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/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why your link?
add the github-history and post-feature to copyright-session
效果: https://blog.dreamtobe.cn/large-project-develop/