Hexo Theme Plus
This is a very very simple plugin. Only replace any theme file in
layout folder to a custom file.
This plugin name from
How to use?
yarn add @jiangtj/hexo-extend-theme
Any file in custom path (default
custom/theme) will replace theme file in same path in
layout folder. You can set another path:
theme_plus: custom_path: custom/theme # disabled: set 'false'
_config.yml, you can special pick up a file:
theme_plus: views: path: 'layout.ejs' file: 'custom/layout.ejs' # or theme_plus: views: - path: 'index.ejs' file: 'custom/index.ejs' - path: 'layout.ejs' file: 'custom/layout.ejs'
- If there is a file path in the replacement file, it may cause rendering errors
- Unable to listen for file modification. If you modify a custom file, you need to rerun 'hexo s' to view the changes