1.0.2 • Published 7 years ago

hexo-jsharkc-live2d v1.0.2

Weekly downloads
1
License
GPL-2.0
Repository
-
Last release
7 years ago

npm version

hexo-helper-live2d

Updated to Version 2.0

简体中文文档

Add live2d to your hexo!

npm install -save hexo-jsharkc-live2d

Demo: https://huaji8.top/post/live2d-plugin-2.0/

Screenshots:

Epsilon2.1

npm.io

Gantzert_Felixander

npm.io

haru

npm.io

miku

npm.io

ni-j

npm.io

nico

npm.io

nietzche

npm.io

nipsilon

npm.io

nito

npm.io

shizuku

npm.io

tsumiki

npm.io

wanko

npm.io

z16

npm.io

hibiki

npm.io

koharu

npm.io

haruto

npm.io

Unitychan

npm.io

tororo

npm.io

hijiki

npm.io

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

Author QQ Email

License

license

Open sourced under the GPL v2.0 license.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago