1.0.0 • Published 2 years ago

hexo-pinyin-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

hexo-pinyin-plugin

把中文转换成拼音的 hexo 插件

安装与使用

NPM

安装

npm install hexo-pinyin-plugin --save

使用

配置hexo根项目下的_config.yml

permalink: :category/:translate_title.html # Use hexo-pinyin-plugin

# https://github.com/kavience/hexo-pinyin-plugin
pinyin:
  enable: true
  rewrite: false
  sourceKey: 'title'
  targetKey: 'translate_title'
  slugifystrOptions:  # all options can find here: https://github.com/dzcpy/transliteration#slugifystr-options
    separator: '-'


## DEMO
[Kavience's Blog](https://kavience.com)

## License
MIT