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); >
-
+ -->