From d1981300382fc96c18f7691d12210d907911f489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Demenech?= Date: Thu, 20 Jul 2023 18:00:00 -0300 Subject: [PATCH 1/3] [site,seo][s]: add description metadata to main pages --- site/components/Layout.tsx | 4 +++- site/content/config.js | 2 +- site/content/docs/index.md | 9 +++++---- site/content/guide/index.md | 1 + site/content/howtos/index.md | 1 + site/pages/[...slug].tsx | 1 + site/pages/blog.tsx | 12 ++++++------ 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/site/components/Layout.tsx b/site/components/Layout.tsx index 66496d90..f3fc0b0a 100644 --- a/site/components/Layout.tsx +++ b/site/components/Layout.tsx @@ -54,12 +54,14 @@ function useTableOfContents(tableOfContents) { export default function Layout({ children, title, + description, tableOfContents = [], isHomePage = false, sidebarTree = [], }: { children; title?: string; + description?: string; tableOfContents?; urlPath?: string; sidebarTree?: []; @@ -82,7 +84,7 @@ export default function Layout({ return ( <> - {title && } + {title && }