Skip to content

Commit

Permalink
update meta
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Aug 29, 2024
1 parent 75d855a commit d939708
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
14 changes: 0 additions & 14 deletions docs/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,6 @@ const config = {
name: 'baidu-site-verification',
content: 'codeva-IaVFkVUuDD',
},
},
{
tagName: 'meta',
attributes: {
name: 'description',
content: '高效管理你的云原生应用程序,像使用个人电脑一样在 Kubernetes 上一键安装编程语言、低代码开发平台、WordPress、数据库、AI 软件和 IM 软件。',
}
},
{
tagName: 'meta',
attributes: {
name: 'keywords',
content: 'Sealos, K8s, 云操作系统, 低代码开发平台, 数据库',
}
}
],
plugins: [
Expand Down
22 changes: 20 additions & 2 deletions docs/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import HomeUserBy from './components/UserBy';
import './index.scss';
import Head from '@docusaurus/Head';
import SaleBanner from '../components/SaleBanner';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

const Home = () => {
const { screenWidth, currentLanguage } = useWindow();
const { screenWidth } = useWindow();
const isPc = useMemo(() => screenWidth > PC_MIN_WIDTH, [screenWidth]);
const { i18n } = useDocusaurusContext();

useEffect(() => {
const loadUmamiScript = () => {
Expand Down Expand Up @@ -57,10 +59,26 @@ const Home = () => {
<div id="sealos-layout-wrap-home-page">
<Head>
<title>
{currentLanguage === 'en'
{i18n.currentLocale === 'en'
? 'Sealos'
: 'Sealos: 专为云原生开发打造的以 K8s 为内核的云操作系统'}
</title>
<meta
name="keywords"
content={
i18n.currentLocale === 'en'
? 'Sealos, Docker, Kubernetes, cloud operating system, container orchestration, microservices, DevOps, containerization, cloud infrastructure, hybrid cloud, multi-cloud management, scalable cloud solutions, Container-as-a-Service, cloud-native'
: 'Sealos,Docker,Kubernetes,云操作系统,云管理平台,云管理,容器云,企业级容器云,容器云部署,容器云厂商,云原生'
}
/>
<meta
name="description"
content={
i18n.currentLocale === 'en'
? 'Sealos: Next-gen cloud OS with Kubernetes core. Manage multi-region enterprise container clouds effortlessly. Deploy databases instantly, auto-scale resources, ensure top security. Trusted by 100,000+ firms, 1M+ devs. Simplify your cloud journey now!'
: 'Sealos云操作系统,Kubernetes 云内核,多 Region 统一管理,以应用为中心的企业级容器云,秒级创建高可用数据库,自动伸缩杜绝资源浪费,一键创建容器集群,端到端的应用安全保障,支持多种复杂应用场景快速上云,超10w+企业,近百万开发者在线使用。'
}
/>
</Head>
<Helmet>
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-786053845" />
Expand Down
23 changes: 23 additions & 0 deletions docs/website/src/pages/self-hosting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import Product from './product';
import Advantage from './advantage';
import Overview from './overview';
import Layout from '@theme/Layout';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

export default function Pricing() {
const { screenWidth } = useWindow();
const { i18n } = useDocusaurusContext();
const isPc = useMemo(() => screenWidth > PC_MIN_WIDTH, [screenWidth]);

useEffect(() => {
Expand All @@ -31,6 +34,26 @@ export default function Pricing() {

return (
<div id="sealos-layout-wrap-home-page">
<Head>
<title>Sealos企业私有云平台-支持多种复杂应用场景快速落地</title>
<meta
name="keywords"
content={
i18n.currentLocale === 'en'
? 'Sealos, private cloud, enterprise private cloud, private cloud solutions, private cloud deployment, private cloud platform, private cloud providers'
: 'Sealos,私有云,企业私有云,私有云解决方案,私有云部署,私有云平台,私有云厂商'
}
/>
<meta
name="description"
content={
i18n.currentLocale === 'en'
? 'Sealos: Next-gen cloud OS with Kubernetes core. Manage multi-region enterprise container clouds effortlessly. Deploy databases instantly, auto-scale resources, ensure top security. Trusted by 100,000+ firms, 1M+ devs. Simplify your cloud journey now!'
: 'Sealos云操作系统,Kubernetes 云内核,多 Region 统一管理,以应用为中心的企业级容器云,秒级创建高可用数据库,自动伸缩杜绝资源浪费,一键创建容器集群,端到端的应用安全保障,支持多种复杂应用场景快速上云,超10w+企业,近百万开发者在线使用.'
}
/>
</Head>

<Layout>
<div className="sealos_price_page">
<img
Expand Down

0 comments on commit d939708

Please sign in to comment.