jerryc127 / hexo-theme-butterfly

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

[Bug]: 使用hexo-blog-encrypt插件加密文章后,不显示子目录 #1412

Closed ZeroUltra closed 6 months ago

ZeroUltra commented 6 months ago

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

4.11.0

是否修改过主题文件? || Has the theme files been modified?

不是 (No)

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

Edge

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

Windows

依賴插件 | Package dependencies Information

+-- hexo-blog-encrypt@3.1.9
+-- hexo-browsersync@0.3.0
+-- hexo-deployer-git@4.0.0
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-feed@3.0.0
+-- hexo-generator-index@3.0.0
+-- hexo-generator-search@2.4.3
+-- hexo-generator-sitemap@3.0.1
+-- hexo-generator-tag@2.0.0
+-- hexo-helper-live2d@3.1.1
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-jade@0.5.0
+-- hexo-renderer-less@4.0.0
+-- hexo-renderer-marked@6.2.0
+-- hexo-renderer-stylus@3.0.0
+-- hexo-server@3.0.0
+-- hexo@5.4.2
+-- live2d-widget-model-unitychan@1.0.5
`-- save@2.9.0

問題描述 | Describe the bug

使用hexo-blog-encrypt 加密文章后,不显示子目录,配置如下

toc: post: true page: false number: true expand: false style_simple: true # for post 简洁模式 scroll_percent: true


expand: true时在任何时候都表现正常 当expand: false时且用hexo-blog-encrypt插件加密文章后,只显示一级目录不显示子目录 image image image

出現問題網站 | Website

未加密: https://zeroultra.github.io/2022/09-14-Unity2IOS_not_encrypt/ 加密(密码:hello): https://zeroultra.github.io/2022/09-14-Unity2IOS/

danvinhe commented 6 months ago

当expand: true时在任何时候都表现正常 当expand: false时且用hexo-blog-encrypt插件加密文章后,只显示一级目录不显示子目录

expand: false的作用就是隐藏子目录

jerryc127 commented 6 months ago

老问题 不推荐使用 hexo-blog-encrypt 因为有些 js 在页面加载时就调用,但这时你的文章是锁定的。你用密码解锁后,需要重新调用某些 js 才能正常运行

ZeroUltra commented 6 months ago

老问题 不推荐使用 hexo-blog-encrypt 因为有些 js 在页面加载时就调用,但这时你的文章是锁定的。你用密码解锁后,需要重新调用某些 js 才能正常运行

OKK