1.0.2 • Published 8 years ago
hexo-jsharkc-live2d v1.0.2
hexo-helper-live2d
Updated to Version 2.0
Add live2d to your hexo!
npm install -save hexo-jsharkc-live2dDemo: https://huaji8.top/post/live2d-plugin-2.0/
Screenshots:
Epsilon2.1

Gantzert_Felixander

haru

miku

ni-j

nico

nietzche

nipsilon

nito

shizuku

tsumiki

wanko

z16

hibiki

koharu

haruto

Unitychan

tororo

hijiki

Installation:
npm install -save hexo-helper-live2dAdd the next line to your hexo theme.
Usually added before </body> in layout/layout.ejs or layout/_layout.swig.
ejs:
<%- live2d() %>swig:
{{ live2d() }}Usage:
Two options:
Option 1
Add configuration in your theme.
<%- live2d({
model: "nipsilon"
}) %>Option 2
Add configuration in hexo's _config.yml file.
live2d:
model: nipsilon
bottom: -60Notes: Option 2 has higher priority, it will overwrite Option 1.
Configuration
- model (default: z16) - Gantzert_Felixander - Epsilon2.1 - haru - miku - ni-j - nico - nito - nipsilon - nietzsche - shizuku - tsumiki - wanko - z16 - hibiki - koharu - haruto - Unitychan - tororo - hijiki
- width default: 150
- height default: 300
- className
<canvas>default: live2d - id
<canvas>default: live2dcanvas - bottom
<canvas>default: -20 Change this variable to adjust the position of model
Enjoy!:beer:
This is my first hexo plugin, star :star: and watch :eyeglasses:.
Github: https://github.com/EYHN/hexo-helper-live2d
issues: https://github.com/EYHN/hexo-helper-live2d/issues
Todo
- Implement interactive dialogs.
About me
License
Open sourced under the GPL v2.0 license.