diff --git a/src/pages/en/plugin/index.astro b/src/pages/en/plugin/index.astro index affc9fa031..2e68d83809 100644 --- a/src/pages/en/plugin/index.astro +++ b/src/pages/en/plugin/index.astro @@ -66,7 +66,13 @@ const dataSource = posts GithubHigressUrl: item.data.githubHigressUrl || `https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/${item.slug.split('/').pop()}`, }; }) - .filter((item) => item.Functionality); + .filter((item) => item.Functionality) + .sort((a, b) => { + // 将“大模型API供应”(key: ai,childKey: api-provider)放在最前面 + if (a.SecondaryTitle === "API Provider") return -1; + if (b.SecondaryTitle === "API Provider") return 1; + return 0; // 默认不改变顺序 + }); ---