live2d tag detected, but won't be use. Make sure 'tagMode' config is expected. See #36, #122.
Closed this issue · 7 comments
callG commented
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.
feiniaoying commented
如何检查网站模板中是否包含live2d()
feiniaoying commented
问题还是存在
feiniaoying commented
xiazeyu commented
如果您想使用最近的注入模式(将会在每个页面上显示):
请从 layout/layout.ejs 或 layout/_layout.swig 中删掉 前的 {{ live2d() }} 或 <%- live2d() %>.
如果您想使用旧的标签模式(仅替换 live2d 标签):
请保留{{ live2d() }} 或 <%- live2d() %>, 并将 tagMode 设置为 true.
我们推荐您使用 npm install --save hexo-helper-live2d@3.x 来强制安装最新版本.
feiniaoying commented
版本已经是最新的了,如果在 layout/_layout.swig 中删掉 {{ live2d() }} 或 <%- live2d() %>,就没有报错,但是页面就没有显示挂件了
xiazeyu commented
请确定 安装了所需的模型。新版本的模型设置有所不同,详见README。
或请打开控制台查看是否报错。