Skip to content

Commit

Permalink
added og image meta for link sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamás committed Jun 26, 2023
1 parent 8af7d6c commit a46d9e3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions src/pages/ecosystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@ import Layout from "../components/layout";
import {Helmet} from "react-helmet";
import {useState} from "react";
import Ecosystem from "../components/ecosystem";
import { graphql } from "gatsby";

const EcosystemPage = () => {
export const query = graphql`
{
site {
siteMetadata {
siteUrl
}
}
}
`;

const EcosystemPage = ({ data }) => {
const [selectedCategory,setSelectedCategory] = useState('all')
const [search,setSearch] = useState(false)
const [open,setOpen] = useState(false)
Expand Down Expand Up @@ -41,11 +52,37 @@ const EcosystemPage = () => {

sortByKey(ecosystems,'title');

const siteMeta = data.site.siteMetadata;

return (
<Layout footerBoxes={FooterBoxes}>
<Helmet>
<title>Celestia - Ecosystem</title>
</Helmet>
<title>Celestia - Ecosystem</title>
<meta name='title' content='Celestia - Ecosystem' />
<meta
name='description'
content="Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem. This page provides thematic focus to the diversity of services and apps developed on top of Celestia Tech."
/>

<meta property='og:type' content='website' />
<meta property='og:url' content='https://celestia.org/ecosystem/' />
<meta property='og:title' content='Celestia - Ecosystem' />
<meta
property='og:description'
content="Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem. This page provides thematic focus to the diversity of services and apps developed on top of Celestia Tech."
/>
<meta property='og:image' content={`${siteMeta}/ecosystem-page.png`} />

<meta property='twitter:card' content='summary_large_image' />
<meta property='twitter:url' content='https://celestia.org/ecosystem/' />
<meta property='twitter:title' content='Celestia - Ecosystem' />
<meta
property='twitter:description'
content="Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem. This page provides thematic focus to the diversity of services and apps developed on top of Celestia Tech."
/>
<meta property='twitter:image' content={`${siteMeta}/ecosystem-page.png`} />
</Helmet>

<div className={'ecosystem-page'}>
<main>
<div className={'container'}>
Expand Down
Binary file added static/ecosystem-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a46d9e3

Please sign in to comment.