Skip to content

Commit

Permalink
chore: 加上Canonical和Structured
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Dec 10, 2024
1 parent 16a69e7 commit 92f1e64
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"title": "Home",
"type": "page",
"href": "https://chat2db.ai",
"target": "_blank",

"newWindow": true
},
"pricing": {
"title": "Pricing",
"type": "page",
"href": "https://chat2db.ai/pricing",
"target": "_blank",

"newWindow": true
},
"download": {
"title": "Download",
"type": "page",
"href": "https://chat2db.ai/download",
"target": "_blank",

"newWindow": true
},
"docs": {
Expand Down
32 changes: 31 additions & 1 deletion theme.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,29 @@ export default {
useNextSeoProps() {
return {
titleTemplate: "%s – Chat2DB",
description:
"An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates AI capabilities.",
openGraph: {
title: "Chat2DB",
description:
"An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates AI capabilities.",
images: [
{
url: "https://cdn.chat2db-ai.com/img/logo.svg",
width: 1200,
height: 630,
alt: "Chat2DB",
},
],
},
};
},
toc: {
float: true,
title: () => "Table of Content",
},
head: () => {
const { locale } = useRouter();
const { asPath, basePath, locale } = useRouter();
const des =
"An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates AI capabilities.";

Expand All @@ -39,6 +54,21 @@ export default {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Chat2DB" />
<meta property="og:description" content={des} />
<link rel="canonical" href={`https://chat2db.ai/${basePath}${asPath}`} />
<script type="application/ld+json">
{JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
url: "https://chat2db.ai",
name: "Chat2DB",
description: des,
potentialAction: {
"@type": "SearchAction",
target: "https://chat2db.ai/search?q={search_term_string}",
"query-input": "required name=search_term_string",
},
})}
</script>
</>
);
},
Expand Down

0 comments on commit 92f1e64

Please sign in to comment.