hexojs / hexojs/hexo

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

Open
#1,302 1 comment 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
TypeScript
Stars
41.8k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.