From e00e43ad0ac6b207ba51fd08c44ef705985f8a55 Mon Sep 17 00:00:00 2001 From: ruchik02 Date: Wed, 30 Nov 2022 16:45:43 +0530 Subject: [PATCH] changes in metatitle and metadescription in utility props --- docs/3.0.x/utility-props.md | 2 ++ docs/3.1.x/utility-props.md | 2 ++ docs/3.2.x/utility-props.md | 2 ++ docs/3.3.x/utility-props.md | 2 ++ docs/3.4.x/utility-props.md | 2 ++ docs/next/utility-props.md | 2 ++ layouts/index.tsx | 12 +++++------- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/docs/3.0.x/utility-props.md b/docs/3.0.x/utility-props.md index 6a8d79aaf..d9d365a86 100644 --- a/docs/3.0.x/utility-props.md +++ b/docs/3.0.x/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/docs/3.1.x/utility-props.md b/docs/3.1.x/utility-props.md index 6a8d79aaf..d9d365a86 100644 --- a/docs/3.1.x/utility-props.md +++ b/docs/3.1.x/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/docs/3.2.x/utility-props.md b/docs/3.2.x/utility-props.md index aded10c12..968cff4a8 100644 --- a/docs/3.2.x/utility-props.md +++ b/docs/3.2.x/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/docs/3.3.x/utility-props.md b/docs/3.3.x/utility-props.md index 20281f505..d18f427e3 100644 --- a/docs/3.3.x/utility-props.md +++ b/docs/3.3.x/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/docs/3.4.x/utility-props.md b/docs/3.4.x/utility-props.md index 20281f505..d18f427e3 100644 --- a/docs/3.4.x/utility-props.md +++ b/docs/3.4.x/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/docs/next/utility-props.md b/docs/next/utility-props.md index 20281f505..d18f427e3 100644 --- a/docs/next/utility-props.md +++ b/docs/next/utility-props.md @@ -1,6 +1,8 @@ --- id: utility-props title: Utility Props +metaTitle: Utility Props | NativeBase +metaDescription: Explore the properties of style props in NativeBase like margin and padding. Discover how they are used to style components by passing props to them. --- Style props are a way to alter the style of a component by simply passing props to it. It helps to save time by providing helpful shorthand ways to style components. diff --git a/layouts/index.tsx b/layouts/index.tsx index 2b3690447..cee9690a5 100644 --- a/layouts/index.tsx +++ b/layouts/index.tsx @@ -103,9 +103,10 @@ function Layout({ ? frontMatter.title + " | NativeBase " : pages?.currentPage?.title + " | NativeBase " }`; - + const { metaTitle, metaDescription } = frontMatter; + console.log(metaTitle, metaDescription); + console.log("hello"); let href = "https://docs.nativebase.io/" + pages.currentPage.id; - return ( <> @@ -115,11 +116,8 @@ function Layout({ content="Universal Components for React and React Native" /> {/* og meta links */} - - + +