very very simple plugin, only replace theme file to a custom file.
LGPL-3.0 License
这是个很简单的插件.唯一的工作是替换掉在layout
文件夹下的主题文件.
yarn add @jiangtj/hexo-extend-theme
在自定义路径(默认custom/theme
)的文件将替换掉在layout
文件夹下相同路径的主题文件.你可以设定一个其它路径:
theme_plus:
custom_path: custom/theme # disabled: set 'false'
在hexo的_config.yml
中,你可以特别的指定一个文件替换:
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'
hexo s
才能查看变化