Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hunter-Github opened this issue May 28, 2015 · 1 comment · May be fixed by #4687
Open

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

Hunter-Github opened this issue May 28, 2015 · 1 comment · May be fixed by #4687

Comments

@Hunter-Github
Copy link

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.

@tommy351
Copy link
Member

tommy351 commented Jun 5, 2015

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

@tommy351 tommy351 added this to the 3.2 milestone Jun 11, 2015
@tommy351 tommy351 mentioned this issue Jun 11, 2015
8 tasks
@NoahDragon NoahDragon modified the milestones: 4.0, 3.2 Apr 7, 2017
@NoahDragon NoahDragon mentioned this issue Apr 7, 2017
53 tasks
@PaperStrike PaperStrike linked a pull request Apr 24, 2021 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants