Skip to content

Commit

Permalink
Revise the plugin list.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyanliang committed Dec 26, 2024
1 parent eca89e6 commit ad16f5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/cn/plugins.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const comingPlugins = allPlugins.filter((p) => !!p.coming);
// 3. 从原有分类中移除这两类插件,避免重复
data.forEach((group) => {
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming);
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming && !p.internal && !p.user_specific);
});
// 4. 去掉空分组(若某分类的插件都被移走了,就不显示)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/en/plugins.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const comingPlugins = allPlugins.filter((p) => !!p.coming);
// 3. 从原分组里移除 newly 和 coming 的插件
// 这样它们就不会和后面的 normal 分组重复出现
data.forEach((group) => {
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming);
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming && !p.internal && !p.user_specific);
});
// 4. 去掉空分组(如果一个分组所有插件都是 newly 或 coming,就没必要再显示空分组标题)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ja/plugins.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const comingPlugins = allPlugins.filter((p) => !!p.coming);
// 3. 从原分组中移除「新推出」或「即将发布」的插件
data.forEach((group) => {
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming);
group.plugins = group.plugins.filter((p) => !p.newly && !p.coming && !p.internal && !p.user_specific);
});
// 4. 过滤掉空分组(如果一个分类里的插件都被拆走了,就不用显示)
Expand Down

0 comments on commit ad16f5b

Please sign in to comment.