From af8a79c48d0ed9b60c9f665028736e38f621c88d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 4 Sep 2021 22:58:58 +0200 Subject: [PATCH] Add helmet to pages --- components/helmet.tsx | 73 +++++++++++++++++++++++++++ content/site.json | 9 +++- pages/[roadmap]/index.tsx | 6 +++ pages/about.tsx | 7 ++- pages/guides/[guide].tsx | 5 ++ pages/guides/index.tsx | 5 ++ pages/index.tsx | 2 + pages/privacy.tsx | 2 + pages/roadmaps/index.tsx | 5 ++ pages/signup.tsx | 2 + pages/terms.tsx | 2 + pages/watch/index.tsx | 2 + public/manifest/apple-touch-icon.png | Bin 0 -> 4186 bytes public/manifest/favicon.ico | Bin 0 -> 15406 bytes public/manifest/icon152.png | Bin 0 -> 2451 bytes public/manifest/icon16.png | Bin 0 -> 123 bytes public/manifest/icon196.png | Bin 0 -> 3731 bytes public/manifest/icon32.png | Bin 0 -> 267 bytes public/manifest/manifest.json | 27 ++++++++++ 19 files changed, 145 insertions(+), 2 deletions(-) create mode 100644 components/helmet.tsx create mode 100755 public/manifest/apple-touch-icon.png create mode 100755 public/manifest/favicon.ico create mode 100755 public/manifest/icon152.png create mode 100755 public/manifest/icon16.png create mode 100755 public/manifest/icon196.png create mode 100755 public/manifest/icon32.png create mode 100644 public/manifest/manifest.json diff --git a/components/helmet.tsx b/components/helmet.tsx new file mode 100644 index 000000000..e5302a340 --- /dev/null +++ b/components/helmet.tsx @@ -0,0 +1,73 @@ +import NextHead from 'next/head'; +import siteConfig from '../content/site.json'; + +type HelmetProps = { + title?: string; + keywords?: string[]; + canonical?: string; + description?: string; +}; + +const Helmet = (props: HelmetProps) => ( + + + + {props.title || siteConfig.title} + + + + + + + {props.canonical && } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { /* Global Site Tag (gtag.js) - Google Analytics */} + {process.env.GA_SECRET && ( + <> +