0.2.4 • Published 4 years ago

@jiangtj/hexo-extend-theme v0.2.4

Weekly downloads
-
License
LGPL-3.0
Repository
github
Last release
4 years ago

Hexo Theme Plus

README npm npm

This is a very very simple plugin. You can see index.js. Only replace any theme file in layout folder to a custom file.

This plugin name from hexo-theme-plus to hexo-extend-theme

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'

In hexo _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'