Skip to content

Commit 47c1485

Browse files
committed
Merge branch 'master' into prod
2 parents 1ec1609 + a848186 commit 47c1485

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ yarn-error.log
7979
# === UNCOMMENT THIS ===
8080
# public
8181

82-
.env.development
82+
.env.development
83+
.env.production

src/posts/articles/ArticlePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const ArticlePage: React.FC<IArticlePage> = (props) => {
121121

122122
return (
123123
<PageLayout location={location} page={PageType.ARTICLE}>
124-
<SEOMetadata pageTitle={title} image={imageSrc} />
124+
<SEOMetadata pageTitle={title} description={subTitle} image={imageSrc} pathname={location.pathname} type="article" />
125125
<PageSection>
126126
<Wrapper>
127127
<FirstColumn>

src/utils/browser/SEOMetadata.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface ISEOMetadata {
1010
image?: string;
1111
pathname?: string;
1212
keywords?: string[];
13+
type?: string;
1314
}
1415

1516
const SEOMetadata: React.FC<ISEOMetadata> = ({
@@ -20,6 +21,7 @@ const SEOMetadata: React.FC<ISEOMetadata> = ({
2021
meta = [],
2122
pathname = '',
2223
keywords = [],
24+
type = 'website',
2325
}) => {
2426
const { site, allFile } = useStaticQuery(graphql`
2527
query {
@@ -85,7 +87,7 @@ const SEOMetadata: React.FC<ISEOMetadata> = ({
8587
},
8688
{
8789
property: 'og:type',
88-
content: 'website',
90+
content: type,
8991
},
9092
{
9193
property: 'og:site_name',

0 commit comments

Comments
 (0)