We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 会导致判断错误,是否考虑做下兼容?
layout/_partial/widgets/components/link.ejs
const isActive = url_for(item.url) == url_for(page.path)
pretty_urls.trailing_index: true
page.path
xxx/index.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
检查清单
问题描述
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 会导致判断错误,是否考虑做下兼容?The text was updated successfully, but these errors were encountered: