diff options
author | 2021-06-11 00:16:18 +0300 | |
---|---|---|
committer | 2021-06-11 00:22:22 +0300 | |
commit | cced46237dc28c7a687e48e144dd60a1ff7daf58 (patch) | |
tree | 60f226766b1ecc3280f9e9d3426481bc308d4a7f | |
parent | Adds React-Helmet (diff) |
Moves Description Metadata
Moves the description meta tag into a helmet managed context, to allow
subpages to override it.
-rw-r--r-- | public/index.html | 4 | ||||
-rw-r--r-- | public/manifest.json | 3 | ||||
-rw-r--r-- | src/App.tsx | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/public/index.html b/public/index.html index ca4f5ac..b873cca 100644 --- a/public/index.html +++ b/public/index.html @@ -4,10 +4,6 @@ <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#7289DA" /> - <meta - name="description" - content="Python Discord Forms is the surveying system for the Python Discord server." - /> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> <link rel="mask-icon" href="/branding/safari-pinned-tab.svg" color="#5bbad5" /> diff --git a/public/manifest.json b/public/manifest.json index af23422..f75c71b 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -21,5 +21,6 @@ "start_url": ".", "display": "standalone", "theme_color": "#7289DA", - "background_color": "#23272A" + "background_color": "#23272A", + "description": "Python Discord Forms is the surveying system for the Python Discord server." } diff --git a/src/App.tsx b/src/App.tsx index 523e583..6f1163a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,6 +2,7 @@ /** @global location */ import React, { Suspense } from "react"; import { jsx, css, Global } from "@emotion/react"; +import { Helmet } from "react-helmet"; import { BrowserRouter as Router, @@ -38,6 +39,10 @@ function PageLoading() { function App(): JSX.Element { return ( <div> + <Helmet> + <meta name="description" content="Python Discord Forms is the surveying system for the Python Discord server."/> + </Helmet> + <Global styles={globalStyles}/> <Router> <Route render={({ location }) => ( |