hexo-helper-ruby
v1.0.4
Published
Help you insert `<ruby>` snippets in hexo templates. Helpers are used in templates to help you insert snippets quickly. Helpers cannot be used in source files.
Downloads
8
Readme
hexo-helper-ruby
help you insert <ruby>
snippets in hexo templates.
帮助您在hexo模板中插入<ruby>
代码片段。
Helpers are used in templates to help you insert snippets quickly. Helpers cannot be used in source files.
辅助函数帮助您在模版中快速插入内容。辅助函数不能在源文件中使用。
Setup
via npm:
npm i hexo-helper-ruby
Usage
- in your hexo templates (e.g.:
.ejs
files), - 在您的模板文件中(例如:
.ejs
文件),
<%- ruby('ruby_base', 'ruby_text') %>
e.g.:
<%- ruby('初音未来', 'Hatsune Miku') %>
// '<ruby><rb>初音未来</rb><rp>(</rp><rt>Hatsune Miku</rt><rp>)</rp></ruby>'
Changelog
Tests
- there are no tests yet.
- 目前尚未有测试。
Issues
- submit any issues/bugs about this package here. Thank you!
- 有任何与此包相关的疑问或者缺陷于此处提交。感谢!
License
MIT ©Futaba Isshiki