From 9283a42a9ee2efb16dae4cd199b274e53fc895df Mon Sep 17 00:00:00 2001 From: xpy01xpy <49626679+xpy01xpy@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:16:29 +0800 Subject: [PATCH] Addfriend links (#827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 调整联系我们的位置 * 整合一级目录 * 隐藏客户与其他分类组 --- src/components/common/Footer.astro | 158 +++++++++++++- .../common/Header/CommunityMenu.astro | 196 ++++++++++-------- src/components/common/Header/Resources.astro | 78 +++++++ src/components/common/Header/navbar.ts | 19 +- src/consts.ts | 47 ++++- .../Nacos-gvr7dx_awbbpb_erclsbfm2qqmwrx1.md | 2 +- .../Nacos-gvr7dx_awbbpb_fgh5c1exxcxa1tok.mdx | 2 +- .../Nacos-gvr7dx_awbbpb_fmgpdeovfi69g0p3.mdx | 2 +- ...l-hangzhou-meetup-2022-and-contribution.md | 2 +- src/content/blog/activity-detail-ospp2022.md | 2 +- src/content/blog/activity-detial-ospp2023.md | 2 +- src/content/blog/announcement-cncf.md | 2 +- .../blog/announcement-docker-hub-solution.md | 2 +- .../blog/announcement-token-secret-key.md | 2 +- src/content/blog/article-nacos114.md | 2 +- src/content/blog/committer-20201102.md | 2 +- src/content/blog/committer-20210510.md | 2 +- src/content/blog/committer-20220429.md | 2 +- src/content/blog/committer-20221028.md | 2 +- src/content/blog/committer-20230320.md | 2 +- src/content/blog/committer-20231207.md | 2 +- src/content/blog/committer-20240710.md | 2 +- src/content/blog/committer-20240805.md | 2 +- src/content/blog/cooperate-apisix.md | 2 +- src/content/blog/cooperate-chengdu-dubbo.md | 2 +- src/content/blog/cooperate-consul-k8s.md | 2 +- src/content/blog/cooperate-dns-sd.md | 2 +- .../cooperate-dynamic-route-zuul-nacos.md | 2 +- src/content/blog/cooperate-eureka2.md | 2 +- src/content/blog/cooperate-higress.md | 2 +- src/content/blog/cooperate-huya-nacos.md | 2 +- src/content/blog/release-140.md | 2 +- src/content/blog/release-201.md | 2 +- src/content/blog/release-203.md | 2 +- src/content/blog/release-210.md | 2 +- src/content/blog/release-211.md | 2 +- src/content/blog/release-212-and-220beta.md | 2 +- src/content/blog/release-220.md | 2 +- src/content/blog/release-221.md | 2 +- src/content/blog/release-222.md | 2 +- src/content/blog/release-230-beta.md | 2 +- src/content/blog/release-230.md | 2 +- src/content/blog/release-240-beta.md | 2 +- src/content/blog/release-240.md | 2 +- src/content/blog/release-csharp-050.md | 2 +- src/content/blog/release-nacos05.md | 2 +- src/content/blog/release-nacos06.md | 2 +- src/content/blog/release-nacos08.md | 2 +- src/content/blog/release-nacos09-intro.md | 2 +- src/content/blog/release-nacos090.md | 2 +- src/content/blog/release-nacos100.md | 2 +- src/content/blog/release-nacos110.md | 2 +- src/content/blog/release-nacos132.md | 2 +- src/content/blog/release-springboot-0210.md | 2 +- src/i18n/en/ui.ts | 8 +- src/i18n/zh-cn/ui.ts | 8 +- src/pages/blog/announcement/[...page].astro | 51 +++++ src/pages/blog/community/[...page].astro | 51 +++++ src/pages/blog/customer/[...page].astro | 51 +++++ src/pages/blog/other/[...page].astro | 51 +++++ .../en/blog/announcement/[...page].astro | 51 +++++ src/pages/en/blog/community/[...page].astro | 51 +++++ src/pages/en/blog/customer/[...page].astro | 51 +++++ src/pages/en/blog/other/[...page].astro | 51 +++++ 64 files changed, 851 insertions(+), 169 deletions(-) create mode 100644 src/components/common/Header/Resources.astro create mode 100644 src/pages/blog/announcement/[...page].astro create mode 100644 src/pages/blog/community/[...page].astro create mode 100644 src/pages/blog/customer/[...page].astro create mode 100644 src/pages/blog/other/[...page].astro create mode 100644 src/pages/en/blog/announcement/[...page].astro create mode 100644 src/pages/en/blog/community/[...page].astro create mode 100644 src/pages/en/blog/customer/[...page].astro create mode 100644 src/pages/en/blog/other/[...page].astro diff --git a/src/components/common/Footer.astro b/src/components/common/Footer.astro index b4259fa583a..7972122a0e3 100644 --- a/src/components/common/Footer.astro +++ b/src/components/common/Footer.astro @@ -2,6 +2,48 @@ import { useTranslations } from "@i18n/util"; const t = useTranslations(Astro); import Button from "@components/common/Button.astro"; +const friendLinks = [ + { + label: 'SpringCloudAlibaba', + link: 'https://sca.aliyun.com/' + }, + { + label: 'SpringAiAlibaba', + link: 'https://sca.aliyun.com/ai/' + }, + { + label: 'Arthas', + link: 'https://arthas.aliyun.com/' + }, + { + label: 'Dubbo', + link: 'https://cn.dubbo.apache.org/zh-cn/' + }, + { + label: 'Sentinel', + link: 'http://sentinelguard.io' + }, + { + label: 'Higress', + link: 'https://higress.io/' + }, + { + label: 'RocketMQ', + link: 'https://rocketmq.io/' + }, + { + label: '可观测中文', + link: 'https://observability.cn/' + }, + { + label: 'OpenKruise', + link: 'https://openkruise.io/' + }, + { + label: 'serverless-devs', + link: 'https://www.serverless-devs.com/' + }, +]; --- @@ -109,6 +253,13 @@ import Button from "@components/common/Button.astro";
+

+ + {t('commmon.footer.friend.link')}: + { + friendLinks.map(item => {item.label}) + } +

© Nacos Authors 2024 | Documentation Distributed under CC-BY-4.0 diff --git a/src/components/common/Header/CommunityMenu.astro b/src/components/common/Header/CommunityMenu.astro index f1d766457ec..e260976c6d0 100644 --- a/src/components/common/Header/CommunityMenu.astro +++ b/src/components/common/Header/CommunityMenu.astro @@ -10,93 +10,109 @@ const ifzh = isChinese(Astro); export const communityItems = [ { - label: "社区", + label: "博客", + target: "_self", + link: "/blog/", translations: { - en: "COMMUNITY", + en: "Blog", }, - children: [ - { - label: "报告文档问题", - target: "_blank", - link: "https://github.com/nacos-group/nacos-group.github.io/issues", - translations: { - en: "Report a doc issue", - }, - }, - { - label: "贡献社区", - target: "_blank", - link: "https://github.com/alibaba/nacos/pulls", - translations: { - en: "Contribute community", - }, - }, - { - label: "贡献者", - target: "_blank", - link: "https://github.com/alibaba/nacos/graphs/contributors", - translations: { - en: "Contributors", - }, - }, - ], }, { - label: "事件", + label: "电子书", + target: "_self", + link: "/docs/ebook/kbyo6n/", translations: { - en: "Events", + en: "E-book", }, - children: [ - { - label: "新闻", - target: "_self", - link: "/news/", - translations: { - en: "News", - }, - }, - { - label: "活动", - target: "_self", - link: "/activity/", - translations: { - en: "Activity", - }, - }, - ], - }, - { - label: "资源", - translations: { - en: "Resources", - }, - children: [ - { - label: "博客", - target: "_self", - link: "/blog/", - translations: { - en: "Blog", - }, - }, - { - label: "电子书", - target: "_self", - link: "/docs/ebook/kbyo6n/", - translations: { - en: "E-book", - }, - }, - { - label: "版本下载", - target: "_self", - link: "/download/nacos-server/", - translations: { - en: "Download", - }, - }, - ], }, + // { + // label: "社区", + // translations: { + // en: "COMMUNITY", + // }, + // children: [ + // { + // label: "报告文档问题", + // target: "_blank", + // link: "https://github.com/nacos-group/nacos-group.github.io/issues", + // translations: { + // en: "Report a doc issue", + // }, + // }, + // { + // label: "贡献社区", + // target: "_blank", + // link: "https://github.com/alibaba/nacos/pulls", + // translations: { + // en: "Contribute community", + // }, + // }, + // { + // label: "贡献者", + // target: "_blank", + // link: "https://github.com/alibaba/nacos/graphs/contributors", + // translations: { + // en: "Contributors", + // }, + // }, + // ], + // }, + // { + // label: "事件", + // translations: { + // en: "Events", + // }, + // children: [ + // { + // label: "新闻", + // target: "_self", + // link: "/news/", + // translations: { + // en: "News", + // }, + // }, + // { + // label: "活动", + // target: "_self", + // link: "/activity/", + // translations: { + // en: "Activity", + // }, + // }, + // ], + // }, + // { + // label: "资源", + // translations: { + // en: "Resources", + // }, + // children: [ + // { + // label: "博客", + // target: "_self", + // link: "/blog/", + // translations: { + // en: "Blog", + // }, + // }, + // { + // label: "电子书", + // target: "_self", + // link: "/docs/ebook/kbyo6n/", + // translations: { + // en: "E-book", + // }, + // }, + // { + // label: "版本下载", + // target: "_self", + // link: "/download/nacos-server/", + // translations: { + // en: "Download", + // }, + // }, + // ], + // }, ]; const categoryMap = { @@ -130,11 +146,11 @@ const posts = await getEntries(simplifiedPosts as any);
- {ifzh ? comt.label : comt.translations?.en} + + {ifzh ? comt.label : comt.translations?.en} + { - comt.children.map((menu) => { + comt.children && comt.children.map((menu) => { const { label, translations, link, target = "_self" } = menu; return ( -
+
-->
@@ -229,7 +245,7 @@ const posts = await getEntries(simplifiedPosts as any);
-
@@ -321,7 +337,7 @@ const posts = await getEntries(simplifiedPosts as any); >
-
+ -->