-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the SEO :Implement XML sitemap
Create a robots.txt file &Create a sitemap generator
- Loading branch information
Showing
6 changed files
with
106 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default function JsonLd() { | ||
return ( | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ | ||
__html: JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": "WebApplication", | ||
"name": "TonyChat", | ||
"description": "Open-source multifunctional chatbot platform", | ||
"applicationCategory": "BusinessApplication", | ||
"operatingSystem": "All", | ||
"offers": { | ||
"@type": "Offer", | ||
"price": "0", | ||
"priceCurrency": "USD" | ||
}, | ||
"author": { | ||
"@type": "Organization", | ||
"name": "TonyChat" | ||
} | ||
}) | ||
}} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Metadata } from 'next' | ||
|
||
const defaultMetadata: Metadata = { | ||
title: { | ||
default: 'TonyChat - Your Personal and Business Chatbot', | ||
template: '%s | TonyChat' | ||
}, | ||
description: 'TonyChat is an open-source, multifunctional Chatbot suitable for both personal and business purposes. It allows for customized chatbot deployment, easy model fine-tuning, and ensures safety and privacy.', | ||
keywords: ['chatbot', 'AI', 'business chat', 'personal assistant', 'open source'], | ||
authors: [{ name: 'TonyChat' }], | ||
creator: 'TonyChat', | ||
publisher: 'TonyChat', | ||
robots: 'index, follow', | ||
openGraph: { | ||
type: 'website', | ||
locale: 'en_US', | ||
url: 'https://www.tonychat.com', | ||
siteName: 'TonyChat', | ||
title: 'TonyChat - Your Personal and Business Chatbot', | ||
description: 'Open-source multifunctional chatbot platform for personal and business use', | ||
images: [ | ||
{ | ||
url: '/T_icon.png', | ||
width: 1200, | ||
height: 630, | ||
alt: 'TonyChat Logo' | ||
} | ||
] | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
title: 'TonyChat - Your Personal and Business Chatbot', | ||
description: 'Open-source multifunctional chatbot platform for personal and business use', | ||
images: ['/T_icon.png'] | ||
} | ||
} | ||
|
||
export default defaultMetadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { MetadataRoute } from 'next' | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: '*', | ||
allow: '/', | ||
disallow: '/private/', | ||
}, | ||
sitemap: 'https://www.tonychat.com/sitemap.xml', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { MetadataRoute } from 'next' | ||
|
||
export default function sitemap(): MetadataRoute.Sitemap { | ||
return [ | ||
{ | ||
url: 'https://www.tonychat.com', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
priority: 1, | ||
}, | ||
{ | ||
url: 'https://www.tonychat.com/chat', | ||
lastModified: new Date(), | ||
changeFrequency: 'monthly', | ||
priority: 0.8, | ||
}, | ||
// Add more URLs as needed | ||
] | ||
} |