Modify theme configuration
Although themes are managed by NPM, they can be easily configured, and hexo supports overridden configurations in themes through the key theme_config
For example, to add a website icon:
1 |
|
If your hexo version is greater than 5.0, you can also configure it in config.<theme>.yml
, which is equivalent to theme_config
For the complete configuration, go to the theme repository to view it
Inject content
This is the function of hexo-extend-injector2 plugin. Cake theme provides these injection points (headBegin, headEnd (head), bodyBegin, bodyEnd, header, footer, postBodyEnd, menu, postMeta, sidebar, variable, style), how to use see plugin warehouse
Replace layout
This part is the function of hexo, which is supported in most themes (you need to replace include with partial, and Cake can be replaced except for the root of layout).
1 |
|
You can also simplify this part of the work with hexo-theme-plus