-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
[BUG]hugo文章中文子目录无法正常跳转 #1209
Comments
似乎中文 ---
title: "Music Tests"
date: 2021-04-16T14:47:54+01:00
lastmod: 2021-04-16T14:47:54+01:00
draft: true
description: "Music Tests"
categories: [Tests]
authors: [PCloud]
hiddenFromHomePage: true
hiddenFromSearch: true
---
{{< music url="/music/Wavelength.mp3" name=Wavelength artist=oldmanyoung cover="/images/Wavelength.webp" >}}
## 中文
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Molestie ac feugiat sed lectus. Enim eu turpis egestas pretium aenean pharetra. Sed risus pretium quam vulputate dignissim. Feugiat in fermentum posuere urna nec. Odio ut enim blandit volutpat maecenas volutpat blandit aliquam. Euismod quis viverra nibh cras. Feugiat nisl pretium fusce id velit ut tortor pretium. Purus ut faucibus pulvinar elementum. Luctus venenatis lectus magna fringilla urna porttitor. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Venenatis cras sed felis eget velit aliquet. Est placerat in egestas erat imperdiet sed euismod nisi porta. Duis at consectetur lorem donec massa sapien faucibus. Nec feugiat in fermentum posuere urna nec tincidunt praesent semper. Ornare aenean euismod elementum nisi quis eleifend quam adipiscing vitae. Risus quis varius quam quisque id diam. Dolor morbi non arcu risus. Ornare quam viverra orci sagittis eu volutpat odio.
## title
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Molestie ac feugiat sed lectus. Enim eu turpis egestas pretium aenean pharetra. Sed risus pretium quam vulputate dignissim. Feugiat in fermentum posuere urna nec. Odio ut enim blandit volutpat maecenas volutpat blandit aliquam. Euismod quis viverra nibh cras. Feugiat nisl pretium fusce id velit ut tortor pretium. Purus ut faucibus pulvinar elementum. Luctus venenatis lectus magna fringilla urna porttitor. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Venenatis cras sed felis eget velit aliquet. Est placerat in egestas erat imperdiet sed euismod nisi porta. Duis at consectetur lorem donec massa sapien faucibus. Nec feugiat in fermentum posuere urna nec tincidunt praesent semper. Ornare aenean euismod elementum nisi quis eleifend quam adipiscing vitae. Risus quis varius quam quisque id diam. Dolor morbi non arcu risus. Ornare quam viverra orci sagittis eu volutpat odio. |
Ok, APlayer's bug |
Ok, it's actually smoothscroll's issue, which is one of APlayer's dependencies. |
抱歉,是我的问题。 |
https://github.com/alicelieutier/smoothScroll/blob/master/smoothscroll.js#L100 This is where it went wrong. The |
As CSS smooth scroll is available on all major platforms https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior It should also fix the issue where sometimes you see the native smooth scrolling fighting with the library. |
感谢回复!请问有更具体的修复步骤吗?刚刚接触hugo有点不太明白您提供的这个方法 |
已解决,参考blog:https://blog.wangriyu.wang/2018/06-Aplayer.html |
Someone has already submitted a PR at DIYgod/APlayer#777. It's just that we don't know if it can get merged one day. |
Describe the bug 描述你遇到的错误
hugo自带的目录系统可以在文章页面生成目录,点击不同的子标题会跳转到对应部分。
不知道为什么?我的博客中文页面无法实现目录跳转,但是英文页面可以正常跳转。
同时,当我在本地预览(localhost:1313)时,英文和中文的文章目录跳转都是正常的。
Expected behavior 期待的行为
是什么因素导致本地和正式上传后的情况不同呢111?
如何修正中文目录的情况呢?
十分感谢您的回答!
Screenshots 屏幕截图
No response
Build Environment 构建环境
No response
Preview Environment 预览环境
Windows 11 +loveit主题+hugo扩展版
使用的hugo默认的目录,没有额外设置什么
Additional Information 补充信息
网站地址:https://blog.huaxiangshan.com/
The text was updated successfully, but these errors were encountered: