Skip to content

jiangtj/hexo-extend-theme

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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