Set page title and meta tags in index.html and remove Helmet usage

This commit is contained in:
srgooglo 2025-07-04 16:21:58 +02:00
parent cc99fbc085
commit b01905c8fd
2 changed files with 173 additions and 182 deletions

View File

@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<title>Comty™</title>
<meta name="title" content="Comty™" />
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
@ -11,7 +13,6 @@
name="description"
content="Comty, a prototype of social network."
/>
<meta name="title" content="Comty" />
<meta
name="description"
content="Comty, a prototype of social network."

View File

@ -5,7 +5,6 @@ import routesDeclarations from "@config/routes"
import onPageMount from "@hooks/onPageMount"
import { Helmet } from "react-helmet"
import * as Sentry from "@sentry/browser"
import { invoke } from "@tauri-apps/api/tauri"
import * as antd from "antd"
@ -113,15 +112,6 @@ class ComtyApp extends React.Component {
render() {
return (
<React.Fragment>
<Helmet>
<title>{config.app.siteName}</title>
<meta
name="og:description"
content={config.app.siteDescription}
/>
<meta property="og:title" content={config.app.siteName} />
</Helmet>
<ThemeProvider>
{window.__TAURI__ && <DesktopTopBar />}
<Layout staticRenders={ComtyApp.staticRenders}>