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 && ( + <> +