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

Conversation

Jacksgong
Copy link
Contributor

add the github-history and post-feature to copyright-session

效果: https://blog.dreamtobe.cn/large-project-develop/

image

Copy link
Collaborator

@ivan-nginx ivan-nginx left a 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 %}
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?

@@ -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?

@@ -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公众号 -
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?

@@ -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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants