jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
7.18k stars 1.29k forks source link

[Bug]: 构建时提示unknown block tag: label #1588

Open qubeijun opened 4 days ago

qubeijun commented 4 days ago

使用的 Butterfly 版本? | What version of Butterfly are you using?

5

是否修改過主題文件? | Has the theme files been modified?

是 (Yes)

使用的瀏覽器? | What browser are you using?

Edge

使用的系統? | What operating system are you using?

Windows

依賴插件 | Package dependencies information

+-- @renbaoshuo/markdown-it-katex@2.0.2
+-- hexo@7.3.0
+-- hexo-abbrlink@2.2.1
+-- hexo-admin@2.3.0
+-- hexo-blog-encrypt@3.1.9
+-- hexo-deployer-git@4.0.0
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index-custom@1.0.1
+-- hexo-generator-tag@2.0.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-markdown-it@7.1.1
+-- hexo-renderer-stylus@3.0.1
+-- hexo-server@3.0.0
+-- hexo-tag-chart@1.0.8
+-- hexo-tag-plantuml@1.0.0
+-- hexo-theme-butterfly@5.0.0
+-- hexo-theme-landscape@1.0.0
+-- hexo-wordcount@6.0.1
+-- katex@0.16.11
`-- vue-typed-js@0.1.2

問題描述 | Describe the bug

image image 添加label标签构建时提示unknown block tag: label

出現問題的網站 | Website with the issue

还没构建成功

qubeijun commented 3 days ago

复现出来了,在themes新增butterfly文件夹就会产生上面的错误,为什么啊

jerryc127 commented 3 days ago

因为 如果 themes 有 butterfly文件夹,hexo 会使用 这个文件夹 如果你只是想要使用 Npm 的主题,把这个文件夹删掉

qubeijun commented 20 hours ago

大脑,我想加个文章统计,但是看了一个教程需要在themes里加butterfly,https://blog.eurkon.com/post/1213ef82.html 而且就他这个统计能好看点,我想用,但这样就破坏了标签外挂,这应该怎么搞啊