D0n9X1n / hexo-blog-encrypt

Yet, just another hexo plugin for security.
https://www.npmjs.com/package/hexo-blog-encrypt
MIT License
971 stars 101 forks source link

加密文章所在index页面显示[object Promise] #138

Closed xmzzyo closed 4 years ago

xmzzyo commented 4 years ago

Issue

在加密文章所在的index页面,会显示[object Promise]。

比如文章在第三页http://localhost:4000/page/3/,则该页为:

image

若在第一页http://localhost:4000/ , 则该页为:[object Promise]。

Expected Behavior

Actual Behavior

Steps to Reproduce the Problem

  1. _
  2. _
  3. _

Specifications

hexo version: 3.9.0

使用theme为pure

请问大佬这是为什么。。?

感谢!

(The version of the project, operating system, hardware etc.)

D0n9X1n commented 4 years ago

应该是和分页插件冲突了, 加密的内容被截断导致解密错误.

不建议开启分页, 在加密的博文上.

xmzzyo commented 4 years ago

大佬你好,我设置了不开启分页: image

然而主页还是[object Promise]。

请问有什么方便的解决方法吗?

谢谢!

D0n9X1n commented 4 years ago

试试把主题提到的插件都关掉试试。 https://github.com/cofess/hexo-theme-pure#install-plugin

看上去像那个 json content 插件。

xmzzyo commented 4 years ago

你好,都关了还是不行,,这个主题是不是没救了。。

D0n9X1n commented 4 years ago

可以试试其他的看看

xmzzyo commented 4 years ago

ok,谢了。