-
Notifications
You must be signed in to change notification settings - Fork 732
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
新版本 Hugo 下点击 toc 时存在 bug #279
Comments
看到了一个 |
#240 中 @panda-z 提到
但是 even 在点击 toc 里面的标题后滚动到该位置以后似乎是先计算出位于页面上方标题在所有标题中的的位置,再用这个位置在 toc 所有链接中选择高亮。
hugo-theme-even/assets/js/even.js
Lines 89 to 125 in 620ff81
如果没有将 h1-h6 全部显示出来,那么点击比较后面的目录时,就会高亮错误的链接。因为页面标题和 toc 中链接长度不一致。
以 example-site 中的 even-preview 为例,在 Hugo v0.72.0 默认的 toc 设置下显示出来的是 h2-h3 ,点击 toc 中的 Abbreviation,高亮显示的是 Dictionary
The text was updated successfully, but these errors were encountered: