Hexo: after_toc_render?

Created on 23 Oct 2016  ·  9Comments  ·  Source: hexojs/hexo

Hello everyone,
Is there any way to manipulate TOC contents after render just like after_post_render did? Maybe the toc is the last part that we can't control though themes :smirk:

Most helpful comment

I will work on that tomorrow. Hope I can find some solutions.

All 9 comments

IMHO, I didn't see any specific reasons that we need it. Any manipulations for rendered TOC could be done after post rendered.

yes , I think so.

While pluginhexo-blog-encrypt obscure the main contents, I also wish to encrypt the TOC. To achieve this, It'll be better to have a interface manipulating TOC after render. @NoahDragon

I have posted an issue to the plugin, hopefully, they could have some solution.

https://github.com/MikeCoder/hexo-blog-encrypt/issues/6

I will work on that tomorrow. Hope I can find some solutions.

Upgrade plugin to v1.1.8 and see https://github.com/MikeCoder/hexo-blog-encrypt#encrypt-toc

Thank you @MikeCoder ! Awesome!

@flashlab Does Mike's solution meet your need?

Thank you guys :smile: really appreciated

Why not a star? *(just kidding) *

Was this page helpful?
0 / 5 - 0 ratings