-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add postCopyright into the default injects point #979
Conversation
Thanks so much for opening your first PR here! |
Cool, could you share your custom swig? We can add it to Awesome-NexT. |
If the wechat_subscriber and the reward are added through postBodyEnd, the two injection points overlap, so modify the implementation of the wechat_subscriber and the reward can be better, do you think? |
I will share it later. Thanks for you appreciation! 😆 |
in my mind, I'd like to divide it into two files, because I have used |
And the same injection point supports injecting multiple layouts, not just one. Just make sure the name of the injection is different. |
我原来是直接改 copyright 来实现的,今天发现了可以自定义注入,于是加了这一块。 现在这么改确实有点不太 |
我是从这 作者demo: http://moxfive.xyz/2016/06/14/duoshuo-disqus-comment-count/#footer |
https://gist.github.com/lengthmin/e5250848c6b2437a392d9d1411a0fbd6
|
Anyway, thanks for your time. And pointBodyEnd and postCopyright are similar, I refactor in #980. (本来想过段时间再弄得QwQ,I thought about it for a while QwQ.) |
Thanks to @jiangtj , This PR isn't elegant, |
Looking forward to your PR In Awesome NexT,for better post-copyright next plugin. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The default copyright style.
Issue resolved: N/A
What is the new behavior?
you can create the copyright you like.
after create custom copyright file:
How to use?
In NexT
_config.yml
:#postCopyright: source/_data/post-copyright.swig
uncomment the line, and insert your own file.
Does this PR introduce a breaking change?