hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
38.83k stars 4.75k forks source link

post_link cannot handle anchors #5333

Closed iliayatsenko closed 6 months ago

iliayatsenko commented 8 months ago

Check List

Feature Request

Sometimes, when linking one post to another with post_link, I need to add specific anchor to the link, in order to make link to point to specific place in the post. It would be great if post_link could support something like that:

{% post_link my_linked_post#anchor-to-specific-place 'Another post' %}

Now this syntax is not supported and throws an error during generation.

Thanks to all of contributors!

Others

No response