Skip to content

Latest commit

 

History

History
178 lines (120 loc) · 3.41 KB

readme.md

File metadata and controls

178 lines (120 loc) · 3.41 KB

npm version

hexo-helper-live2d

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/

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-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() }}

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: -60

Notes: 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 ⭐ and watch 👓.

Github: https://github.com/EYHN/hexo-helper-live2d

issues: https://github.com/EYHN/hexo-helper-live2d/issues

Todo

  • Implement interactive dialogs.

About me

Author QQ Email

License

license

Open sourced under the GPL v2.0 license.