Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

live2d tag detected, but won't be use. Make sure 'tagMode' config is expected. See #36, #122. #123

Closed
callG opened this issue Jul 21, 2018 · 7 comments

Comments

@callG
Copy link

callG commented Jul 21, 2018

hexo/_config,yml配置如下:

live2d:
  enable: true
  scriptFrom: local
  pluginRootPath: live2dw/
  pluginJsPath: lib/
  pluginModelPath: assets/
  tagMode: false
  debug: false
  display:
    position: right
    width: 150
    height: 300
  mobile:
    show: true

运行hexo g时报告HEXO-HELPER-LIVE2D: live2d tag detected, but won't be use. Make sure 'tagMode' config is expected. See #36, #122.

@xiazeyu
Copy link
Collaborator

xiazeyu commented Jul 21, 2018

@callG 此提示不影响使用
请检查您的网站模板中是否包含live2d(), 有则删去即可

@feiniaoying
Copy link

如何检查网站模板中是否包含live2d()

@feiniaoying
Copy link

问题还是存在

@feiniaoying
Copy link

INFO HEXO-HELPER-LIVE2D: live2d tag detected, but won't be use. Make sure 'tagMode' config is expected. See #36, #122.

@xiazeyu
Copy link
Collaborator

xiazeyu commented Aug 12, 2018

如果您想使用最近的注入模式(将会在每个页面上显示):
请从 layout/layout.ejs 或 layout/_layout.swig 中删掉 前的 {{ live2d() }} 或 <%- live2d() %>.

如果您想使用旧的标签模式(仅替换 live2d 标签):
请保留{{ live2d() }} 或 <%- live2d() %>, 并将 tagMode 设置为 true.

我们推荐您使用 npm install --save hexo-helper-live2d@3.x 来强制安装最新版本.

@feiniaoying
Copy link

版本已经是最新的了,如果在 layout/_layout.swig 中删掉 {{ live2d() }} 或 <%- live2d() %>,就没有报错,但是页面就没有显示挂件了

@xiazeyu
Copy link
Collaborator

xiazeyu commented Aug 12, 2018

请确定 安装了所需的模型。新版本的模型设置有所不同,详见README。
或请打开控制台查看是否报错。

@callG callG closed this as completed Aug 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants