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

特定情况下超链接焦点判断问题 #523

Open
3 tasks done
chanbeiyu opened this issue Sep 25, 2024 · 0 comments
Open
3 tasks done

特定情况下超链接焦点判断问题 #523

chanbeiyu opened this issue Sep 25, 2024 · 0 comments

Comments

@chanbeiyu
Copy link

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

layout/_partial/widgets/components/link.ejs 文件中 const isActive = url_for(item.url) == url_for(page.path) 判断在如下特定情况下存在问题:
Hexo 配置文件 (_config.yml) 中 pretty_urls.trailing_index: true 。此时 page.path 的值为 xxx/index.html,如果 item.url 省略了 index.html 会导致判断错误,是否考虑做下兼容?

@chanbeiyu chanbeiyu changed the title 特定情况下超链接焦点判断错误 特定情况下超链接焦点判断问题 Sep 25, 2024
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

1 participant