Skip to content

Commit

Permalink
docs done
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Nov 15, 2023
1 parent 4de790d commit 1907360
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
16 changes: 15 additions & 1 deletion docs/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "/",
Expand Down Expand Up @@ -221,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: [
Expand Down
10 changes: 9 additions & 1 deletion docs/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -44,6 +45,13 @@ const Home = () => {

const HomeRender = (
<div id="sealos-layout-wrap-home-page">
<Head>
<title>
{currentLanguage === 'en'
? 'Sealos'
: 'Sealos: 专为云原生开发打造的以 K8s 为内核的云操作系统'}
</title>
</Head>
<Helmet>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-786053845" />
<script async>
Expand Down

0 comments on commit 1907360

Please sign in to comment.