mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-08 16:54:15 +00:00
Set page title and meta tags in index.html and remove Helmet usage
This commit is contained in:
parent
cc99fbc085
commit
b01905c8fd
@ -3,6 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
||||||
|
<title>Comty™</title>
|
||||||
|
<meta name="title" content="Comty™" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
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"
|
name="description"
|
||||||
content="Comty, a prototype of social network."
|
content="Comty, a prototype of social network."
|
||||||
/>
|
/>
|
||||||
<meta name="title" content="Comty" />
|
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Comty, a prototype of social network."
|
content="Comty, a prototype of social network."
|
||||||
|
@ -5,7 +5,6 @@ import routesDeclarations from "@config/routes"
|
|||||||
|
|
||||||
import onPageMount from "@hooks/onPageMount"
|
import onPageMount from "@hooks/onPageMount"
|
||||||
|
|
||||||
import { Helmet } from "react-helmet"
|
|
||||||
import * as Sentry from "@sentry/browser"
|
import * as Sentry from "@sentry/browser"
|
||||||
import { invoke } from "@tauri-apps/api/tauri"
|
import { invoke } from "@tauri-apps/api/tauri"
|
||||||
import * as antd from "antd"
|
import * as antd from "antd"
|
||||||
@ -113,15 +112,6 @@ class ComtyApp extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<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>
|
<ThemeProvider>
|
||||||
{window.__TAURI__ && <DesktopTopBar />}
|
{window.__TAURI__ && <DesktopTopBar />}
|
||||||
<Layout staticRenders={ComtyApp.staticRenders}>
|
<Layout staticRenders={ComtyApp.staticRenders}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user