From 15cda482f702588996a9a035d0081f264ed2769e Mon Sep 17 00:00:00 2001 From: Anmol-Baranwal <74038190+Anmol-Baranwal@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:06:39 +0530 Subject: [PATCH 1/2] chore: fix warning as per official docs --- pages/_document.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/_document.tsx b/pages/_document.tsx index 1686ac461..8d0e73745 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -5,13 +5,15 @@ export default function Document() { return ( - LinksHub - + From b60863c8e2f0cd891fe345cf9dfadcdc305b4e4f Mon Sep 17 00:00:00 2001 From: Anmol-Baranwal <74038190+Anmol-Baranwal@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:11:11 +0530 Subject: [PATCH 2/2] chore: add comments to decribe about parts --- pages/_document.tsx | 47 +++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/pages/_document.tsx b/pages/_document.tsx index 8d0e73745..1445e9f7e 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -2,14 +2,17 @@ import { Html, Head, Main, NextScript } from 'next/document' import Script from 'next/script' export default function Document() { + const metaDescription = + 'LinksHub is the ultimate hub of ready-to-use tech resources. Discover free tools and libraries to streamline your development process and build better projects.' + const ogImageUrl = + 'https://res.cloudinary.com/dhnkuonev/image/upload/v1683805184/linkshub_gcahgs.png' + return ( + {/* Common Meta Tags */} - + + - {/* Should be changed on hosting the website */} + {/* Open Graph Meta Tags */} - - + + - {/* */} + + {/* Twitter Meta Tags */} - - - + + + + {/* Discord Meta Tags */} + + {/* Google Tag Manager Script */}