Molunerfinn / hexo-theme-melody

:musical_keyboard:A simple & beautiful & fast theme for Hexo.
https://molunerfinn.com
Other
1.59k stars 212 forks source link

1.9.1版本下中文目录无法跟随问题 #343

Closed chris3687994 closed 1 year ago

chris3687994 commented 1 year ago

I want to create a new issue

Melody Information

Melody Version:1.9.1

Platform:Windows

Browser:Chrome

Expected behavior

阅读文章时章节自动跟随,点击目录可以正常跳转。

Actual behavior

阅读文章时目录未跟随,点击目录未发生跳转

image 我查阅了以往的issues,发现在说是这个问题在1.8.2之后修复,我是9月29日安装1.9.1版本,在使用目录功能时发现这个问题依然存在 image

Steps to reproduce the behavior

请访问https://flag.life/2022/12/16/Migrate-And-Update-Hexo-Blog-From-Travis-Cl-to-Github-Action 这篇文章


Molunerfinn commented 1 year ago

你的版本依然是1.6.1而不是1.9.1,请确保升级。

image

注意看你的仓库里的这个文件跟 melody 的这个文件的区别:

https://github.com/chris3687994/chris3687994.github.io/blob/master/js/scroll.js

https://github.com/Molunerfinn/hexo-theme-melody/blob/master/source/js/scroll.js

chris3687994 commented 1 year ago

谢谢作者,最后发现是hexo工作目录下有旧的/theme目录,造成最新版本的主题没有生效,删除后恢复正常。