Skip to content

Commit bb47900

Browse files
kwilkinsGitHub Enterprise
authored andcommitted
Merge pull request linode#258 from kwilkins/DLC-135
DLC-135 Bring meta-tags to parity
2 parents baf2ced + a0b4317 commit bb47900

File tree

10 files changed

+59
-10
lines changed

10 files changed

+59
-10
lines changed

src/components/0_utilities/seo.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function SEO({ description, lang, meta, keywords, title }) {
1010
render={data => {
1111
const metaDescription =
1212
description || data.site.siteMetadata.description;
13+
const metaImage = `https://developers.linode.com/img/linode-logo_standard_light_medium.png`;
14+
const metaUrl = `https://developers.linode.com/`;
1315
return (
1416
<Helmet
1517
htmlAttributes={{
@@ -34,9 +36,29 @@ function SEO({ description, lang, meta, keywords, title }) {
3436
property: `og:type`,
3537
content: `website`
3638
},
39+
{
40+
property: `og:url`,
41+
content: metaUrl
42+
},
43+
{
44+
property: `og:image`,
45+
content: metaImage
46+
},
3747
{
3848
name: `twitter:card`,
39-
content: `summary`
49+
content: metaImage
50+
},
51+
{
52+
name: `twitter:image`,
53+
content: metaImage
54+
},
55+
{
56+
name: `twitter:domain`,
57+
content: metaUrl
58+
},
59+
{
60+
name: `twitter:url`,
61+
content: metaUrl
4062
},
4163
{
4264
name: `twitter:creator`,
@@ -49,6 +71,10 @@ function SEO({ description, lang, meta, keywords, title }) {
4971
{
5072
name: `twitter:description`,
5173
content: metaDescription
74+
},
75+
{
76+
property: `twitter:type`,
77+
content: `website`
5278
}
5379
]
5480
.concat(

src/components/5_templates/api-old.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class apiPage extends React.Component {
4848

4949
return (
5050
<Layout title="API Documentation" subtitle="Linode API Documentation">
51-
<SEO title="API Documentation" description="" />
51+
<SEO title="Linode API Documentation" description="Container Tools" />
5252
<div className="flex flex-wrap">
5353
<div className="w-full md:w-1/4 mt-8">
5454
<Sidebar />

src/components/5_templates/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const apiPage = ({ data }) => {
3838
// subtitle="Linode API Documentation"
3939
fullWidth
4040
>
41-
<SEO title="API Documentation" description="" />
41+
<SEO title="Linode API Documentation" description="Container Tools" />
4242
<div className="flex flex-wrap">
4343
<div className="sidebar-container">
4444
<Sidebar />

src/components/5_templates/changelogs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const Changelogs = ({ pageContext, data }) => {
1212

1313
return (
1414
<Layout title="Changelog" subtitle="Latest updates from the Linode team">
15-
<SEO title="Changelog" description="" />
15+
<SEO
16+
title="Changelog"
17+
description="Latest updates from the Linode team"
18+
/>
1619
<div className="container mx-auto max-w-lg my-8">
1720
<ChangelogNav />
1821
{/* <h1>{tagHeader}</h1> */}

src/html.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ function HTML(props) {
66
<html lang="en">
77
<head>
88
<meta charSet="utf-8" />
9+
<meta name="robots" content="all,follow" />
10+
<meta name="googlebot" content="index,follow,snippet,archive" />
911
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1012
{props.headComponents}
1113
<link rel="shortcut icon" href={favicon} />

src/pages/changelog.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const ChangelogPage = ({ data }) => {
1212

1313
return (
1414
<Layout title="Changelog" subtitle="Latest updates from the Linode team">
15-
<SEO title="Changelog" description="" />
15+
<SEO
16+
title="Changelog"
17+
description="Latest updates from the Linode team"
18+
/>
1619
<div className="container mx-auto max-w-lg my-8">
1720
<ChangelogNav totalCount={totalCount} />
1821
{edges.map(({ node }) => {

src/pages/guides.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ const GuidesPage = ({ data }) => {
1414
title="Linode API Guides"
1515
subtitle="Guides on getting started with the Linode API"
1616
>
17-
<SEO title="Changelog" description="" />
17+
<SEO
18+
title="Linode API Guides"
19+
description="Guides on getting started with the Linode API"
20+
/>
1821
<div className="mx-auto text-center max-w-lg my-8 pb-4">
1922
<h2 className="font-normal text-BaseGreenDark">API Guides</h2>
2023
</div>

src/pages/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ const IndexPage = ({ data }) => {
99
const { edges } = data.allMarkdownRemark;
1010
return (
1111
<Layout title="Developer Tools" subtitle="For Developers, by Developers">
12-
<SEO title="Home" description="" />
12+
<SEO
13+
title="Linode Developer Tools"
14+
description="Linode API Documentation, Guides, and Tools"
15+
/>
1316
<div className="row-full relative -mt-2 px-2">
1417
<section className="header max-w-3xl mx-auto px-4 md:px-8 py-12 relative z-10">
1518
<h2 className="text-center font-normal text-BaseGreenDark">

src/pages/kubernetes.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ import CodeBox from "../components/2_molecules/code-box";
55

66
const KubernetesPage = () => {
77
return (
8-
<Layout title="Developer Tools" subtitle="For Developers, by Developers">
9-
<SEO title="Home" description="" />
8+
<Layout
9+
title="Kubernetes Tools"
10+
subtitle="Create a Kubernetes Cluster with One Command"
11+
>
12+
<SEO
13+
title="Kubernetes Tools"
14+
description="Create a Kubernetes Cluster with One Command"
15+
/>
1016
<div className="flex flex-wrap mb-8 -mx-4">
1117
<div className="w-full px-4">
1218
<div className="my-4 md:mt-12 md:mt-8 max-w-3xl">

src/pages/libraries-tools.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const LibToolsPage = () => {
1212
title="Linode API Libraries and Tools"
1313
subtitle="Libraries and DevOps tools for the Linode API"
1414
>
15-
<SEO title="Home" description="" />
15+
<SEO
16+
title="Linode API Libraries & Tools"
17+
description="Libraries and DevOps tools for the Linode API"
18+
/>
1619
<div className="flex flex-wrap mb-8 -mx-4">
1720
<div className="w-full px-4">
1821
<div className="my-4 md:mt-12 md:mt-8 max-w-3xl">

0 commit comments

Comments
 (0)