fix: seo problems (#19)

This commit is contained in:
boojack
2023-04-06 11:09:23 +08:00
committed by GitHub
parent 4742f8b83c
commit e7de062dfd
2 changed files with 9 additions and 4 deletions

View File

@ -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 (

View File

@ -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"