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

inner page anchor doesn't work in case of chinese characters on it #4792

Closed
guoapeng opened this issue Oct 6, 2021 · 3 comments
Closed

inner page anchor doesn't work in case of chinese characters on it #4792

guoapeng opened this issue Oct 6, 2021 · 3 comments

Comments

@guoapeng
Copy link

guoapeng commented Oct 6, 2021

Hi there,
when I open a post on the left hand of which there is a outline view, if I click on the item which contains chinese charactors, it can't bring me to the proper anchor point with no response.
when I open the developer mode of the browser chrome, I got the error like this and captured an screenshot of the error, please refer to the image.
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
at HTMLAnchorElement. (utils.js:240)
image
Uploading image.png…

the hexo version and plugin version are listed, please check and advise, thanks in advance!

$hexo v
INFO  Validating config
hexo: 5.4.0
hexo-cli: 4.3.0
os: linux 5.4.70-amd64-desktop Deepin 20.1 20.1
node: 14.17.6
v8: 8.4.371.23-node.76
uv: 1.41.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.17.2
modules: 83
nghttp2: 1.42.0
napi: 8
llhttp: 2.1.3
openssl: 1.1.1l
cldr: 39.0
icu: 69.1
tz: 2021a
unicode: 13.0
themes:
"name": "hexo-theme-next",
  "version": "7.8.0",
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

scheme: Gemini
@stevenjoezhang
Copy link
Member

This issue has been fixed in next-theme/hexo-theme-next@0d2b3af
Theme NexT version 7.8.0 is outdated. The latest version is v8.8.0 https://github.com/next-theme/hexo-theme-next/releases/tag/v8.8.0

@guoapeng
Copy link
Author

guoapeng commented Oct 6, 2021

thanks @stevenjoezhang for the reply, that is very helpful! I will try the latest version and to see if it can solve the problem.
but I guess I was missled by the installation instruction of the hexo-theme-next. I followed installation approach option 1 on the page detailed installation instructions, the script on the page to get latest release version is still returning v7.8.0 at the moment. I think that could be a problem I have to report to you guys.

$curl -s https://api.github.com/repos/theme-next/hexo-theme-next/releases/latest | grep tarball_url
"tarball_url": "https://api.github.com/repos/theme-next/hexo-theme-next/tarball/v7.8.0",

@guoapeng
Copy link
Author

guoapeng commented Oct 7, 2021

yeah, I tried the new version which fixed the issue, thanks @stevenjoezhang

@guoapeng guoapeng closed this as completed Oct 7, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants