use $source\_$theme.yml file for theme config #440
Closed
+6
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
抱歉, 英文不好,还是用中文好了..
功能
使用
首先把主题的_config.yml文件复制到你的站点source目录下,并改名为_
THEME
.yml,THEME
是对应的主题名称.每个主题都可以在source目录下放一个对应的主题配置.
使用例子
我有两个站点hexo.chenall.net和chenall.net使用的是同样的主题,没有这个功能之前,我必须一个站一个目录,并且每个站都要有对应的主题文件,这样很不方便.
这个配合 #435,#436 新增的--config功能就可以很方便的配置多站点.
注: 多站时,每个站的配置中
source
目录和public
目录要改成各自独立的不要一样.