From cced46237dc28c7a687e48e144dd60a1ff7daf58 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Fri, 11 Jun 2021 00:16:18 +0300 Subject: Moves Description Metadata Moves the description meta tag into a helmet managed context, to allow subpages to override it. --- public/index.html | 4 ---- public/manifest.json | 3 ++- 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 @@ - 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 (
+ + + + ( -- cgit v1.2.3