Skip to content

change in meta title and meta description #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/3.4.x/solito.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
metaTitle: Creating a Universal App with NativeBase and Solito | NativeBase
metaDescription: Universal Apps has been made a reality in NativeBase, using Solito. A guide on how your next application can run with the same codebase on three platforms.
---

For a long time, The React Native community had been looking for a way to make Universal Apps a reality with Server Side Rendering support for quite some time. The major roadblock that was stopping us was Navigation. Solito is the most probable answer. NativeBase already works on all three platforms, as we know, making the NativeBase and Solito combination a match made in heaven.

With it, your next application can run with the same codebase on all three platforms. Here is how to proceed.
Expand Down
5 changes: 5 additions & 0 deletions docs/next/solito.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
metaTitle: Creating a Universal App with NativeBase and Solito | NativeBase
metaDescription: Universal Apps has been made a reality in NativeBase, using Solito. A guide on how your next application can run with the same codebase on three platforms.
---

For a long time, the React Native community has been looking for a way to make Universal Apps a reality with Server Side Rendering support. The major roadblock that was stopping us was Navigation. Solito is the most probable answer. NativeBase already works on all three platforms, as we know, making the NativeBase and Solito combination a match made in heaven.
With it, your next application can run with the same codebase on all three platforms. Here is how to proceed.

Expand Down
8 changes: 5 additions & 3 deletions layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function Layout({
}`;

let href = "https://docs.nativebase.io/" + pages.currentPage.id;
const { metaTitle, metaDescription } = frontMatter;
console.log(metaTitle, metaDescription);
const {metaTitle,metaDescription}=frontMatter;

return (
<>
<Head>
Expand All @@ -117,7 +117,9 @@ function Layout({
/>
{/* og meta links */}
<meta property="og:title" content={metaTitle} />
<meta property="og:description" content={metaDescription} />
<meta
property="og:description"
content={metaDescription} />
<meta property="og:url" content="https://docs.nativebase.io" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:site_name" content="NativeBase" />
Expand Down