Skip to content

5am3/hexo-helper-live2d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Add the Sseexxyyy live2d to your hexo!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.6%
  • HTML 0.4%