Skip to content

Commit ec8713d

Browse files
committed
Update SEO meta tags
1 parent c4118b0 commit ec8713d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

uilib-docs/src/components/layout.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,25 @@ const pathPrefix = '/react-native-ui-lib';
1212
const Layout = ({children, location}) => {
1313
const {pathname} = location;
1414
const showSidebar = _.replace(pathname, pathPrefix, '') !== '/';
15+
16+
const metaTitle = 'RNUILib';
17+
const metaDescription = 'React Native UI Toolset and Components Library';
18+
1519
return (
1620
<div className="layout">
1721
<Helmet>
1822
<meta charSet="utf-8" />
19-
<title>RNUILib</title>
20-
<meta name="description" content="React Native UI Toolset and Components Library"></meta>
21-
<link rel="canonical" href="https://wix.github.io/react-native-ui-lib/" />
23+
<title>{metaTitle}</title>
24+
<meta name="title" content={metaTitle} />
25+
<meta name="description" content={metaDescription} />
26+
<meta property="og:title" content={metaTitle} />
27+
<meta property="og:description" content={metaDescription} />
28+
<meta property="twitter:title" content={metaTitle} />
29+
<meta property="twitter:description" content={metaDescription} />
30+
<link
31+
rel="canonical"
32+
href="https://wix.github.io/react-native-ui-lib/"
33+
/>
2234
</Helmet>
2335
<Header />
2436
{/* <div className={`main ${!showSidebar ? 'fill' : ''}`}> */}

0 commit comments

Comments
 (0)