hexo-encrypt icon indicating copy to clipboard operation
hexo-encrypt copied to clipboard

Next主题与encrypt插件兼容性问题

Open BillYang2016 opened this issue 7 years ago • 13 comments

使用hexo-encrypt插件加密文章后,Next主题侧栏文章的目录不显示。 原本应该是这个样子: default 加密后是这样的: png2

Next版本:5.1.3 Next Schemes:Gemini | 右边框

BillYang2016 avatar Dec 02 '17 08:12 BillYang2016

Have a look at https://github.com/MikeCoder/hexo-blog-encrypt This works properly.

xiazeyu avatar Feb 18 '18 12:02 xiazeyu

However,it doesn't work properly either.

BillYang2016 avatar Feb 18 '18 12:02 BillYang2016

Now this plugin supports TOC encrypt. See https://mhexo.github.io/example-site/2016/10/26/HexoBlogEncrpyt/ default @BillYang2016

xiazeyu avatar Feb 18 '18 12:02 xiazeyu

@xiazeyu which version of NexT and blog-encrypt do you use?

BillYang2016 avatar Feb 18 '18 12:02 BillYang2016

哇你是住在GitHub了吗~秒回??? I use [email protected].. Next版本忘掉了 https://xiazeyu.github.io/ ..才发现我博客不知道为什么没有TOC..

xiazeyu avatar Feb 18 '18 12:02 xiazeyu

@xiazeyu 邮件提醒。。 Hovever, For NexT 5.1.4 and NexT 6.x.x , the plugin can't process properly again.

BillYang2016 avatar Feb 18 '18 12:02 BillYang2016

https://github.com/MikeCoder/hexo-blog-encrypt/blob/master/lib/mcommon.js#L18:L20

xiazeyu avatar Feb 18 '18 13:02 xiazeyu

@xiazeyu I don't know what you mean?
Do you mean this issue,It can't work on new version NexT.

BillYang2016 avatar Feb 18 '18 13:02 BillYang2016

I don' t know whether it can work on the latest version of NexT because I havn't upgrade my blog for a long time. I mean that it can work on a version of NexT.

The code to achieve it is: https://github.com/MikeCoder/hexo-blog-encrypt/blob/master/ReadMe.zh.md#%E5%AF%B9-toc-%E8%BF%9B%E8%A1%8C%E5%8A%A0%E5%AF%86 and https://github.com/MikeCoder/hexo-blog-encrypt/blob/master/lib/mcommon.js#L18:L20

You can imitate it to have a try.

xiazeyu avatar Feb 18 '18 13:02 xiazeyu

But it seems that you may have a huge refactor on it.

xiazeyu avatar Feb 18 '18 13:02 xiazeyu

@xiazeyu I will try,thank you anyway.

BillYang2016 avatar Feb 18 '18 13:02 BillYang2016

I had tried MikeCoder/hexo-blog-encrypt#16 and It seems not work for me . Do you find any solutions for this ? @BillYang2016

There is anthor issue: site-overview-wrap on sidebar will not show when I click its button on the menu . 侧边框,点击站点概览按钮,站点概览的section没有出现(section 标签没有side-panel-show样式,style属性也没有值)

Yalhu avatar Mar 02 '18 03:03 Yalhu

@Yalhu Not yet.But @MikeCoder & @xiazeyu are working on it.

BillYang2016 avatar Mar 02 '18 09:03 BillYang2016