Skip to content

Commit 488a1bf

Browse files
committed
Add seo fixes
1 parent bfc45fd commit 488a1bf

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

src/components/seo.js

+23-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { useStaticQuery, graphql } from "gatsby"
1212
import streamonCoverImg from "../images/streamon-cover.png"
1313

1414

15-
function SEO({ description, lang, meta, title, image, author }) {
15+
function SEO({ description, lang, meta, title, image, author, twitterCardType }) {
1616
const { site } = useStaticQuery(
1717
graphql`
1818
query {
@@ -50,13 +50,21 @@ function SEO({ description, lang, meta, title, image, author }) {
5050
property: `og:description`,
5151
content: metaDescription,
5252
},
53+
{
54+
property: `og:url`,
55+
content: `https://getstreamon.com`
56+
},
57+
{
58+
property: `og:site_name`,
59+
content: `Streamon`
60+
},
5361
{
5462
property: `og:type`,
55-
content: `website`,
63+
content: `object`,
5664
},
5765
{
5866
name: `twitter:card`,
59-
content: `summary`,
67+
content: twitterCardType || `summary`,
6068
},
6169
{
6270
name: `twitter:creator`,
@@ -78,9 +86,21 @@ function SEO({ description, lang, meta, title, image, author }) {
7886
name: `twitter:image`,
7987
content: coverImage
8088
},
89+
{
90+
name: `twitter:site`,
91+
content: `@streamonhq`
92+
},
93+
{
94+
name: `twitter:creator`,
95+
content: `@streamonhq`
96+
},
8197
{
8298
name: `image`,
8399
content: coverImage
100+
},
101+
{
102+
name: `og:image`,
103+
content: coverImage
84104
}
85105
].concat(meta)}
86106
/>

src/images/blog-cover-image.png

194 KB
Loading

src/pages/blog.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { graphql } from "gatsby"
33
import Layout from "../components/Layout"
44
import BlogsList from "../components/BlogsList"
55
import SEO from "../components/seo"
6+
import BlogCoverImage from "../images/blog-cover-image.png";
67

78
export default function Blogs({ data }) {
89
const blogsData = data.allMarkdownRemark.nodes.map(item => item.frontmatter)
@@ -11,6 +12,8 @@ export default function Blogs({ data }) {
1112
<SEO
1213
title="The Streamon Community Blog - Tutorials and Guides"
1314
description="Learn from the streamer's community on using Streamon and learn about building your brand with Instagram using live videos"
15+
twitterCardType={`summary_large_image`}
16+
image={BlogCoverImage}
1417
meta={[
1518
{
1619
name: "keywords",

src/pages/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default function IndexPage({ data }) {
1212
<SEO
1313
title="Stream live to Instagram from Windows/Linux"
1414
description="Go live with high quality stream from your desktop/laptop. Streamon helps you to create streaming links to Instagram Live with a single click!"
15+
twitterCardType={`summary_large_image`}
1516
meta={[
1617
{
1718
name: "keywords",

src/templates/BlogTemplate/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default function BlogTemplate({ data }) {
1313
description={frontmatter.description}
1414
image={frontmatter.cover_image.publicURL}
1515
author={frontmatter.author}
16+
twitterCardType={`summary_large_image`}
1617
meta={
1718
[
1819
{

0 commit comments

Comments
 (0)