Neurosis Prevention Mechanism

    @jiangtj/hexo-extend-theme

    0.2.4 • Public • Published

    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'

    Install

    npm i @jiangtj/hexo-extend-theme

    DownloadsWeekly Downloads

    5

    Version

    0.2.4

    License

    LGPL-3.0

    Unpacked Size

    12.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • jiangtj