Skip to content

Commit a8db379

Browse files
committed
添加seo内容
1 parent fec8442 commit a8db379

File tree

3 files changed

+62
-28
lines changed

3 files changed

+62
-28
lines changed

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ const config = {
7474
{
7575
name: "keywords",
7676
content:
77-
"scriptcat,userscript,backscript,browser extension,浏览器扩展,用户脚本,后台脚本,脚本猫",
77+
"scriptcat,userscript,browser extension,浏览器扩展,用户脚本,后台脚本,脚本猫,tampermonkey,violentmonkey,greasemonkey,javascript,自动化脚本,网页增强",
78+
},
79+
{
80+
name: "description",
81+
content: "ScriptCat 是一个可以执行自定义脚本的浏览器扩展,支持用户脚本、后台脚本等多种脚本类型。提供强大的脚本管理、同步、订阅等功能。",
7882
},
7983
],
8084
navbar: {

i18n/en/code.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
{
2+
"homepage.meta.title": {
3+
"message": "ScriptCat - Powerful Browser Script Engine",
4+
"description": "Homepage meta title for SEO"
5+
},
6+
"homepage.meta.description": {
7+
"message": "ScriptCat is a powerful open-source browser script engine that lets you easily customize web functionality, eliminate ads, automate tasks, and enhance your browsing experience. Compatible with Tampermonkey with more features.",
8+
"description": "Homepage meta description for SEO"
9+
},
10+
"homepage.og.title": {
11+
"message": "ScriptCat - Powerful Browser Script Engine",
12+
"description": "Open Graph title for social sharing"
13+
},
14+
"homepage.og.description": {
15+
"message": "Open-source browser script engine that makes your browser do more. Supports userscripts, background scripts, compatible with Tampermonkey, more powerful features.",
16+
"description": "Open Graph description for social sharing"
17+
},
18+
"homepage.twitter.title": {
19+
"message": "ScriptCat - Powerful Browser Script Engine",
20+
"description": "Twitter card title"
21+
},
22+
"homepage.twitter.description": {
23+
"message": "Open-source browser script engine that makes your browser do more",
24+
"description": "Twitter card description"
25+
},
226
"homepage.hero.title": {
327
"message": "The Ultimate Script Engine for",
428
"description": "Main title on the homepage hero section"
@@ -283,14 +307,6 @@
283307
"message": "Thanks to all contributors",
284308
"description": "Footer contributors section title"
285309
},
286-
"homepage.meta.title": {
287-
"message": "Home",
288-
"description": "Homepage meta title"
289-
},
290-
"homepage.meta.description": {
291-
"message": "ScriptCat, a browser extension that executes user scripts, making everything scriptable and enabling your browser to do more!",
292-
"description": "Homepage meta description"
293-
},
294310
"footer.description": {
295311
"message": "A powerful browser script engine that makes your web experience richer and more colorful.",
296312
"description": "Footer description"

src/pages/index.tsx

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
44
import clsx from "clsx";
55
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
66
import Layout from "@theme/Layout";
7+
import Head from '@docusaurus/Head';
78
import { Dropdown, Space } from "antd";
89
import styles from "./index.module.css";
910
import { Icon } from "@iconify/react";
@@ -1362,24 +1363,37 @@ export default function Home(): JSX.Element {
13621363
}, []);
13631364

13641365
return (
1365-
<Layout
1366-
title={translate({
1367-
id: 'homepage.meta.title',
1368-
message: '首页',
1369-
})}
1370-
description={translate({
1371-
id: 'homepage.meta.description',
1372-
message: '脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!',
1373-
})}
1374-
>
1375-
<div className={styles.homeContainer}>
1376-
<HomepageHeader />
1377-
<FeaturesSection />
1378-
<ComparisonSection />
1379-
<ScenarioSection />
1380-
<DownloadSection />
1381-
<Footer />
1382-
</div>
1383-
</Layout>
1366+
<>
1367+
<Head>
1368+
<meta
1369+
name="description"
1370+
content={translate({
1371+
id: 'homepage.meta.description',
1372+
message: 'ScriptCat是一个强大的开源浏览器脚本引擎,让您轻松自定义网页功能、屏蔽广告、自动化任务,提升浏览体验。兼容Tampermonkey,提供更多功能和优化。',
1373+
})}
1374+
/>
1375+
<meta name="keywords" content="ScriptCat,用户脚本,浏览器扩展,userscript,tampermonkey,violentmonkey,自动化,网页自定义,脚本管理,广告屏蔽" />
1376+
</Head>
1377+
1378+
<Layout
1379+
title={translate({
1380+
id: 'homepage.meta.title',
1381+
message: '首页',
1382+
})}
1383+
description={translate({
1384+
id: 'homepage.meta.description',
1385+
message: '脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!',
1386+
})}
1387+
>
1388+
<div className={styles.homeContainer}>
1389+
<HomepageHeader />
1390+
<FeaturesSection />
1391+
<ComparisonSection />
1392+
<ScenarioSection />
1393+
<DownloadSection />
1394+
<Footer />
1395+
</div>
1396+
</Layout>
1397+
</>
13841398
);
13851399
}

0 commit comments

Comments
 (0)