We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这样比较方便主题的更新,你觉得呢
The text was updated successfully, but these errors were encountered:
我倒是建议把所有变量都移动到博客的_config.yaml里面,这样就可以不用修改主题的任何一部分了,同步也非常方便。说下我的具体做法:
_config.yaml
... anatole: disqus: xxx twitter: xxx
在主题里用config.anatole.disqus和config.anatole.twitter来引用。
config.anatole.disqus
config.anatole.twitter
cd hexo-blog git submodule add https://github.com/Ben02/hexo-theme-Anatole.git theme/anatole git add theme/anatole git commit -m"add theme" git push
cd hexo-blog/theme/anatole git pull cd ../.. git add . git commit -m"sync theme with upstream" git push
Sorry, something went wrong.
我目前也是这么做的,但是主题里的config还是会覆盖博客里的config
@ch3rub1m 做下兼容,加个判断逻辑,优先使用博客里的 config 应该就可以了。
5e8d5c0
Merge pull request Ben02#10 from godlzr/CodeMonkey
49cec38
Site updated: 2017-02-07 22:28:24
No branches or pull requests
这样比较方便主题的更新,你觉得呢
The text was updated successfully, but these errors were encountered: