EYHN / hexo-helper-live2d

Add the Sseexxyyy live2d to your hexo!
GNU General Public License v2.0
3.86k stars 469 forks source link

position: left 在 hexo 不生效 #100

Open lixueninggg opened 6 years ago

lixueninggg commented 6 years ago
  1. 版本3.x 在hexo中的配置position不生效
  2. 配置如下
    live2d:
    enable: true
    scriptFrom: local
    pluginRootPath: live2dw/
    pluginJsPath: lib/
    pluginModelPath: assets/
    model:
    use: live2d-widget-model-wanko
    display:
    position: left
    width: 150
    height: 300
    mobile:
    show: true
lixueninggg commented 6 years ago

@EYHN 请帮我看一下谢谢

lixueninggg commented 6 years ago

@Yggdrasill-7C9 这个是官方github的配置,不知道你用的是2.5.1版本还是3.x版本

polaris-dxz commented 6 years ago

@lixueninggg 我用的是3.x 版本,我找到原因了,是配置路径的问题。如果你没添加新的模型,用我下面的这个配置,脚本路径,插件路径,模型路径用默认的就好。

live2d:
  model:
    scale: 1
    hHeadPos: 0.5
    vHeadPos: 0.618
  display:
    superSample: 2
    width: 150
    height: 300
    position: left
    hOffset: 0
    vOffset: -20
  mobile:
    show: true
    scale: 0.5
  react:
    opacityDefault: 0.7
    opacityOnHover: 0.2
xiazeyu commented 6 years ago

将会修复默认配置文件和优化提示信息

lixueninggg commented 6 years ago

@xiazeyu 现在可以使用了吗?

xiazeyu commented 6 years ago

@lixueninggg 请确认一下您的Hexo和hexo-helper-live2d均为最新版本。 你先试试 Yggdrasill-7C9 的解决方案。

zhoufanglu commented 5 years ago

@lixueninggg 我用的是3.x 版本,我找到原因了,是配置路径的问题。如果你没添加新的模型,用我下面的这个配置,脚本路径,插件路径,模型路径用默认的就好。

live2d:
  model:
    scale: 1
    hHeadPos: 0.5
    vHeadPos: 0.618
  display:
    superSample: 2
    width: 150
    height: 300
    position: left
    hOffset: 0
    vOffset: -20
  mobile:
    show: true
    scale: 0.5
  react:
    opacityDefault: 0.7
    opacityOnHover: 0.2

此方法有效,亲测可行、