Skip to content

🍬 very very simple plugin, only replace theme file to a custom file.

License

Notifications You must be signed in to change notification settings

jiangtj/hexo-extend-theme

Repository files navigation

Hexo Theme Plus

README npm npm

This is a very very simple plugin. 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'

Pay attention

  • 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

About

🍬 very very simple plugin, only replace theme file to a custom file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published