mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-08-02 14:01:59 +08:00
fix: seo problems (#19)
This commit is contained in:
@ -18,7 +18,9 @@ function MyApp({ Component, pageProps }: AppProps) {
|
||||
const settingStore = useSettingStore();
|
||||
|
||||
useEffect(() => {
|
||||
i18n.changeLanguage(settingStore.setting.locale);
|
||||
const locale = settingStore.setting.locale;
|
||||
i18n.changeLanguage(locale);
|
||||
document.documentElement.setAttribute("lang", locale);
|
||||
}, [settingStore.setting.locale]);
|
||||
|
||||
return (
|
||||
|
@ -40,16 +40,19 @@ const IndexPage: NextPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>SQL Chat</title>
|
||||
<title>SQL Chat - Chat-based SQL client for the next decade</title>
|
||||
<link rel="icon" href="/chat-logo-bot.webp" />
|
||||
<meta name="description" content="Chat-based SQL Client" />
|
||||
<meta name="description" content="Chat-based SQL client for the next decade" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="og:title" property="og:title" content="SQL Chat" />
|
||||
<meta name="og:description" property="og:description" content="Chat-based SQL Client" />
|
||||
<meta name="og:description" property="og:description" content="Chat-based SQL client for the next decade" />
|
||||
<meta name="og:image" property="og:image" content="https://www.sqlchat.ai/chat-logo-and-text.webp" />
|
||||
<meta name="og:type" property="og:type" content="website" />
|
||||
<meta name="og:url" property="og:url" content="https://www.sqlchat.ai" />
|
||||
</Head>
|
||||
|
||||
<h1 className="sr-only">SQL Chat</h1>
|
||||
|
||||
<main className="drawer drawer-mobile w-full h-full">
|
||||
<input
|
||||
id="connection-drawer"
|
||||
|
Reference in New Issue
Block a user