Updated to Version 2.0
Add the Sseexxyyy live2d to your hexo!
npm install -save hexo-helper-live2d
Demo: https://huaji8.top/post/live2d-plugin-2.0/
npm install -save hexo-helper-live2d
Add the next line to your hexo theme.
Usually added before </body>
in layout/layout.ejs
or layout/_layout.swig
.
ejs:
<%- live2d() %>
swig:
{{ live2d() }}
Two options:
Add configuration in your theme.
<%- live2d({
model: "nipsilon"
}) %>
Add configuration in hexo's _config.yml file.
live2d:
model: nipsilon
bottom: -60
Notes: Option 2 has higher priority, it will overwrite Option 1.
- 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 ⭐ and watch 👓.
Github: https://github.com/EYHN/hexo-helper-live2d
issues: https://github.com/EYHN/hexo-helper-live2d/issues
- Implement interactive dialogs.
Open sourced under the GPL v2.0 license.