1.0.1 • Published 4 years ago

@jiangtj/hexo-config-plus v1.0.1

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

Hexo Config Plus

npm.io npm

Read and override theme configuration or languages from _data

Install

yarn add @jiangtj/hexo-config-plus

Use

config_plus:
  theme: next
  languages: languages

And them

Create next.yml or languages.yml in ${hexo}/source/_data

next.yml

// config in your theme config
bar:
  foo: true

languages.yml

// override languages
[zh-CN]:
  menu:
    home: 首页
    archives: 归档
    categories: 分类
    tags: 标签
    about: 关于
    search: 搜索
    sitemap: 站点地图
    commonweal: 公益 404
en:
// ...