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

archive页面判定从title修改为单独变量 #478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iwts
Copy link

@iwts iwts commented May 19, 2024

archive页面有基于tag进行筛选的功能,这个js的生效取决于页面的title=Archive
title是用户自定义的,随时会进行修改,修改后就会导致tag筛选相关的js代码失效,采用这种自定义值作为一个feature的启用条件显然不是很合适。

这个pr做了调整,引入了新的变量,默认archive页面会通过is-archive=true来标记,从而保证相关feature的启用,并和自定义的title逻辑剥离

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

Successfully merging this pull request may close these issues.

1 participant