-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/meta-tags-fix' into dev
- Loading branch information
Showing
37 changed files
with
953 additions
and
718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import { useStaticQuery, graphql } from "gatsby"; | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
import { Helmet } from "react-helmet"; | ||
|
||
function SEO({ description, lang, meta, keywords, title, image }) { | ||
const { site } = useStaticQuery(graphql` | ||
query DefaultSEOQuery { | ||
site { | ||
siteMetadata { | ||
title | ||
description | ||
author | ||
image | ||
siteUrl | ||
} | ||
} | ||
} | ||
`); | ||
|
||
|
||
console.log(site.siteMetadata.image) | ||
|
||
const metaTitle = title || site.siteMetadata.title; | ||
const metaDescription = description || site.siteMetadata.description; | ||
const metaImage = image ? site.siteMetadata.siteUrl + image : site.siteMetadata.siteUrl + site.siteMetadata.image; | ||
|
||
return ( | ||
<Helmet | ||
htmlAttributes={{ | ||
lang, | ||
}} | ||
meta={[ | ||
{ | ||
name: `description`, | ||
content: metaDescription, | ||
}, | ||
{ | ||
property: `og:title`, | ||
content: metaTitle, | ||
}, | ||
{ | ||
property: `og:description`, | ||
content: metaDescription, | ||
}, | ||
{ | ||
property: `og:image`, | ||
content: metaImage, | ||
}, | ||
{ | ||
property: `og:type`, | ||
content: `website`, | ||
}, | ||
{ | ||
name: `twitter:card`, | ||
content: `summary`, | ||
}, | ||
{ | ||
name: `twitter:creator`, | ||
content: site.siteMetadata.author, | ||
}, | ||
{ | ||
name: `twitter:title`, | ||
content: metaTitle, | ||
}, | ||
{ | ||
name: `twitter:description`, | ||
content: metaDescription, | ||
}, | ||
] | ||
.concat( | ||
keywords.length > 0 | ||
? { | ||
name: `keywords`, | ||
content: keywords.join(`, `), | ||
} | ||
: [] | ||
) | ||
.concat(meta)} | ||
title={title} | ||
titleTemplate={`%s | ${site.siteMetadata.title}`} | ||
/> | ||
); | ||
} | ||
|
||
SEO.defaultProps = { | ||
lang: `en`, | ||
keywords: [], | ||
meta: [], | ||
}; | ||
|
||
SEO.propTypes = { | ||
description: PropTypes.string, | ||
keywords: PropTypes.arrayOf(PropTypes.string), | ||
lang: PropTypes.string, | ||
meta: PropTypes.array, | ||
title: PropTypes.string.isRequired, | ||
image: PropTypes.string, | ||
}; | ||
|
||
export default SEO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Experiment with testnet", | ||
description: "Join a growing ecosystem of developers building rollups and applications on the Mocha testnet.", | ||
image: "/what-is-celestia-1.png", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Celestia - Technology", | ||
description: "Celestia is pioneering a new paradigm in blockchain design. A minimal, modular consensus layer for rollups.", | ||
image: "", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const seoContent = { | ||
title: "Celestia - What is Celestia?", | ||
description: "Celestia is pioneering a new paradigm in blockchain design. A minimal, modular consensus layer for rollups.", | ||
image: "/what-is-celestia-og-image.jpg", | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.