Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hexo-permalink-pinyin with all npm packages installed. Try it out:

var hexoPermalinkPinyin = require("hexo-permalink-pinyin")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hexo-permalink-pinyin v1.1.0

A Hexo plugin which convert Chinese title to transliterate permalink.

hexo-permalink-pinyin

NPM version

A Hexo plugin which convert Chinese title to transliterate permalink.

_posts/你今日饮咗未.md => http://your-site/ni-jin-ri-yin-zuo-wei/

Install

npm i hexo-permalink-pinyin --save

Usage

Add configuration in _config.yml

# https://github.com/viko16/hexo-permalink-pinyin
permalink_pinyin:
  enable: true
  separator: '-' # default: '-'

Options

permalink_pinyin:
  enable: true             # Enable this plugin
  separator: '-'           # Separator of the slug, default: '-'
  exclude: /ignore_post/   # Regex for which post should skip

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free