Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit b2be581

Browse files
committed
[gitpod vs cs] changed og image
1 parent 5f46dad commit b2be581

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/layouts/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type StaticQueryProps = {
2424
}
2525
}
2626

27-
class IndexLayout extends React.Component<{ title?: string; canonical?: string; description?: string }, {}> {
27+
class IndexLayout extends React.Component<{ title?: string; canonical?: string; description?: string, ogImage?:string }, {}> {
2828
handleFirstTab = (e: any) => {
2929
if (e.key === 'Tab') {
3030
// the "I am a keyboard user" key
@@ -46,7 +46,7 @@ class IndexLayout extends React.Component<{ title?: string; canonical?: string;
4646
}
4747

4848
render() {
49-
const { title, canonical, description, children } = this.props
49+
const { title, canonical, description, ogImage, children } = this.props
5050

5151
return (
5252
<StaticQuery
@@ -85,7 +85,7 @@ class IndexLayout extends React.Component<{ title?: string; canonical?: string;
8585
<meta property="og:url" content={data.site.siteMetadata.siteUrl} />
8686
<meta property="og:title" content={title || data.site.siteMetadata.title} />
8787
<meta property="og:description" content={description || data.site.siteMetadata.description} />
88-
<meta property="og:image" content="https://www.gitpod.io/media-image.jpg" />
88+
<meta property="og:image" content={ogImage || "https://www.gitpod.io/media-image.jpg"} />
8989

9090
<meta name="google-site-verification" content="NBio3hCkfn2FKJpqZritJpXuyKo54noPGZzWsjDIp-M" />
9191
</Helmet>

src/pages/gitpod-vs-github-codespaces.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ const StyledGitpodVsGitHubCodespacesPage = styled.div`
7070
`
7171

7272
const GitpodVsGitHubCodespacesPage = () => (
73-
<IndexLayout title="Gitpod vs GitHub Codespaces" description="Gitpod is the faster, more powerful open-source platform that integrates with your individual stack." canonical="gitpod-vs-github-codespaces">
73+
<IndexLayout title="Gitpod vs GitHub Codespaces"
74+
description="Gitpod is the faster, more powerful open-source platform that integrates with your individual stack."
75+
canonical="gitpod-vs-github-codespaces"
76+
ogImage="https://www.gitpod.io/octocat-gitpod-hat.jpg">
7477
<StyledGitpodVsGitHubCodespacesPage>
7578
<section className="main">
7679
<div className="row">

static/octocat-gitpod-hat.jpg

42.5 KB
Loading

0 commit comments

Comments
 (0)