diff --git a/docs/4.0/code.json b/docs/4.0/code.json index e1e56bf77f0..c1b5200eb92 100644 --- a/docs/4.0/code.json +++ b/docs/4.0/code.json @@ -639,5 +639,8 @@ }, "Explore": { "message": "了解更多" + }, + "Blog": { + "message": "博客" } } \ No newline at end of file diff --git a/docs/website/docusaurus.config.js b/docs/website/docusaurus.config.js index c3d9a7e0cb7..1a00d8991b3 100644 --- a/docs/website/docusaurus.config.js +++ b/docs/website/docusaurus.config.js @@ -4,7 +4,7 @@ const generateAlgoliKey = () => "ce5b8e1e4d0d35ff587caf75ac404df4" /** @type {import('@docusaurus/types').Config} */ const config = { - title: "sealos", + title: "Sealos: 专为云原生开发打造的以 K8s 为内核的云操作系统", tagline: "Kubernetes-kernel-based cloud os! Let's sealos run kubernetes", url: "https://sealos.io/", baseUrl: "/", @@ -107,6 +107,11 @@ const config = { to: "/self-hosting", label: "Hosting" }, + { + position: "left", + to: "/blog", + label: "Blog" + }, { position: "left", to: "https://fael3z0zfze.feishu.cn/share/base/form/shrcnesSfEK65JZaAf2W6Fwz6Ad", @@ -216,6 +221,20 @@ const config = { name: 'baidu-site-verification', content: 'codeva-E1X5UKtV9p', }, + }, + { + tagName: 'meta', + attributes: { + name: 'description', + content: '高效管理你的云原生应用程序,像使用个人电脑一样在 Kubernetes 上一键安装编程语言、低代码开发平台、WordPress、数据库、AI 软件和 IM 软件。', + } + }, + { + tagName: 'meta', + attributes: { + name: 'keywords', + content: 'Sealos, K8s, 云操作系统, 低代码开发平台, 数据库', + } } ], plugins: [ diff --git a/docs/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json b/docs/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json index de15b047c55..308f1554f85 100644 --- a/docs/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json +++ b/docs/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json @@ -18,5 +18,9 @@ "item.label.Start Now": { "message": "在线使用", "description": "Navbar item with label Start Now" + }, + "item.label.Blog": { + "message": "博客", + "description": "Navbar item with label Blog" } -} +} \ No newline at end of file diff --git a/docs/website/src/components/NavBanner/index.tsx b/docs/website/src/components/NavBanner/index.tsx index 2573b9b67ef..ccc32330857 100644 --- a/docs/website/src/components/NavBanner/index.tsx +++ b/docs/website/src/components/NavBanner/index.tsx @@ -22,7 +22,7 @@ export default function NavBanner({ useEffect(() => { const lastCloseTimestamp = +localStorage.getItem('bannerCloseTimestamp'); if ( - window.location.hostname === 'localhost' && + window.location.hostname === 'sealos.io' && (!lastCloseTimestamp || Date.now() - lastCloseTimestamp > 7 * 24 * 60 * 60 * 1000) ) { setIsBannerVisible(true); diff --git a/docs/website/src/pages/components/Header/index.tsx b/docs/website/src/pages/components/Header/index.tsx index 92a4e0320eb..202e14d3b87 100644 --- a/docs/website/src/pages/components/Header/index.tsx +++ b/docs/website/src/pages/components/Header/index.tsx @@ -27,6 +27,11 @@ const navbar = [ label: Hosting, to: '/self-hosting ' }, + { + key: 'blog', + label: Blog, + to: '/blog' + }, { key: 'contact', label: Contact, diff --git a/docs/website/src/pages/index.tsx b/docs/website/src/pages/index.tsx index 2cdbefb93c9..70a98f439c3 100644 --- a/docs/website/src/pages/index.tsx +++ b/docs/website/src/pages/index.tsx @@ -11,9 +11,10 @@ import HomeHeader from './components/Header'; import Introduce from './components/Introduce'; import HomeUserBy from './components/UserBy'; import './index.scss'; +import Head from '@docusaurus/Head'; const Home = () => { - const { screenWidth, cloudUrl } = useWindow(); + const { screenWidth, cloudUrl, currentLanguage } = useWindow(); const isPc = useMemo(() => screenWidth > PC_MIN_WIDTH, [screenWidth]); useEffect(() => { @@ -44,6 +45,13 @@ const Home = () => { const HomeRender = (
+ + + {currentLanguage === 'en' + ? 'Sealos' + : 'Sealos: 专为云原生开发打造的以 K8s 为内核的云操作系统'} + +