hexo icon indicating copy to clipboard operation
hexo copied to clipboard

Anchors in individual blog entries aren't made unique in the main page

Open Hunter-Github opened this issue 9 years ago • 1 comments

A blog is composed of several entries. When I add footnotes to an entry, the anchors are numbered #fn1, #fn2 etc. Hexo joins the entries in a single page but does not change the anchors. Thus, when I click on the 2nd footnote of an entry other than the top one, the browser navigates to the topmost (and hence, wrong) #fn2 anchor.

The engine could individualize anchors by prepending the entry's slug.

Hunter-Github avatar May 28 '15 18:05 Hunter-Github

This problem can't be solved currently since renderers only get the content of posts.

tommy351 avatar Jun 05 '15 06:06 tommy351

Any updates on this thread?

stevenjoezhang avatar Mar 19 '20 08:03 stevenjoezhang