hexo-pinyin-plugin
v1.0.0
Published
Translate the Chinese into pinyin
Downloads
3
Maintainers
Readme
hexo-pinyin-plugin
把中文转换成拼音的 hexo 插件
安装与使用
安装
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