Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/meta tags fix merge resolved #227

Merged
merged 31 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5a58be4
added new seo component, seoContent files for meta data copy, added n…
Jul 3, 2023
7da251a
index page updated to functional component, added more seoContent files
Jul 3, 2023
0e5904a
added seoContent files and copy, cleand up data files
Jul 3, 2023
7bac60c
twitter image size fix
Jul 3, 2023
85a2955
comment removed
Jul 3, 2023
0661cfc
Add files via upload
alex-beckett Jul 5, 2023
684e409
Update seoContent.js
alex-beckett Jul 5, 2023
91a9c7e
Update seoContent.js
alex-beckett Jul 5, 2023
0753b9d
Update seoContent.js
alex-beckett Jul 5, 2023
595269d
Update seoContent.js
alex-beckett Jul 5, 2023
2130be6
Update seoContent.js
alex-beckett Jul 5, 2023
1480eed
Update seoContent.js
alex-beckett Jul 5, 2023
894814b
Update seoContent.js
alex-beckett Jul 5, 2023
f93a95b
Update seoContent.js
alex-beckett Jul 5, 2023
8ec7508
Update seoContent.js
alex-beckett Jul 5, 2023
c914510
Update seoContent.js
alex-beckett Jul 5, 2023
c22f0c1
Update seoContent.js
alex-beckett Jul 5, 2023
8dc8ed5
Update seoContent.js
alex-beckett Jul 5, 2023
6ba6683
Update seoContent.js
alex-beckett Jul 5, 2023
7976771
Update seoContent.js
alex-beckett Jul 5, 2023
807fcf8
Delete Developer-Portal.jpg
alex-beckett Jul 5, 2023
f5a67f7
Add files via upload
alex-beckett Jul 5, 2023
c59da2f
Update seoContent.js
alex-beckett Jul 5, 2023
1bb16cd
Add files via upload
alex-beckett Jul 5, 2023
d0d7370
fixed glossary pages and developer portal seo an image
Jul 5, 2023
5d12c6e
typo fix
Jul 5, 2023
6c88ead
Update seoContent.js
alex-beckett Jul 6, 2023
52d19ed
Update seoContent.js
alex-beckett Jul 6, 2023
e332a91
Update seoContent.js
alex-beckett Jul 6, 2023
1ba52d5
Update seoContent.js and siteMeta url
Jul 6, 2023
a22a65b
Merge branch 'release/meta-tags-fix' into release/test
Jul 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ module.exports = {
siteUrl: "https://celestia.org",
title: "Celestia",
},

siteMetadata: {
title: `The first modular blockchain network`,
description: `Celestia is a modular consensus and data network, built to enable anyone to easily deploy their own blockchain with minimal overhead.`,
author: `@CelestiaOrg`,
siteUrl: `https://celestia.org`,
// siteUrl: `https://dev.lazyledger.org`, <-- switch to this url for OG meta previews on https://dev.lazyledger.org
image: `/celestia-default-og-image.jpg`,
},

plugins: [
"gatsby-plugin-react-helmet",
Expand Down
4 changes: 0 additions & 4 deletions src/components/header.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react"
import { Link } from "gatsby"
import {Helmet} from "react-helmet";

import logo from '../images/celestia-logo.svg'
import Image from "./imageComponent";
Expand Down Expand Up @@ -163,9 +162,6 @@ class Header extends React.Component {
return (
<>
<header id={'header'}>
<Helmet>
<title>Celestia</title>
</Helmet>
<div className={'blurry'}/>
<div className={'container'}>
<button id={'hamburger'} className="hamburger hamburger--slider" type="button" onClick={this.toggleMenu}>
Expand Down
98 changes: 98 additions & 0 deletions src/components/seo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
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
}
}
}
`);

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_large_image`,
},
{
name: `twitter:title`,
content: metaTitle,
},
{
name: `twitter:site`,
content: site.siteMetadata.author,
},
{
name: `twitter:description`,
content: metaDescription,
},
]
.concat(
keywords.length > 0
? {
name: `keywords`,
content: keywords.join(`, `),
}
: []
)
.concat(meta)}
title={metaTitle}
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;
5 changes: 5 additions & 0 deletions src/datas/careers/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Careers | celestia.org",
description: "Join our team of leading engineers, researchers, and entrepreneurs in pioneering the first modular blockchain design.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/community/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Community | celestia.org",
description: "Discover community hubs, discussion forums, and resources that are used by the global Celestia community.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/developer-portal/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Developer Portal | celestia.org",
description: "The homepage for Celestia developers. Tutorials. Resources. Community.",
image: "/developer-portal-og-image.jpg",
};
File renamed without changes.
5 changes: 5 additions & 0 deletions src/datas/ecosystem/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Ecosystem | celestia.org",
description: "Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem.",
image: "/ecosystem-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/faq/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "FAQ | celestia.org",
description: "Find answers to frequently asked questions about Celestia.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/glossary/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Glossary | celestia.org",
description: "Explore new terms about Celestia and modular blockchains.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/home/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Home | celestia.org",
description: "Celestia is a modular consensus and data network, built to enable anyone to easily deploy their own blockchain with minimal overhead.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/press/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Press | celestia.org",
description: "Find branding, news, social channels, and press contacts.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/resources/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Resources | celestia.org",
description: "Explore blog posts, podcasts episodes, YouTube videos, and research papers about the Celestia network.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/team/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Team | celestia.org",
description: "Meet the team building the Celestia network.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/technology/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "Technology | celestia.org",
description: "Learn about the core technology powering Celestia's new modular blockchain architecture.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 5 additions & 0 deletions src/datas/what-is-celestia/seoContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const seoContent = {
title: "What is Celestia? | celestia.org",
description: "A complete beginner's guide to how Celestia works, its key benefits, and how anyone in the world will be able to create their own blockchain in minutes.",
image: "/what-is-celestia-og-image.jpg",
};
Binary file removed src/images/glossary-twitter-card.png
Binary file not shown.
12 changes: 8 additions & 4 deletions src/pages/careers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import Button from "../components/buttons/button";
import Perk from "../components/modules/perk";
import Layout from "../components/layout";
import {graphql, useStaticQuery} from "gatsby";
import {Helmet} from "react-helmet";

import { seoContent } from "../datas/careers/seoContent";
import SEO from "../components/seo";

const CareersPage = () => {
const jobs = useStaticQuery(graphql`
Expand Down Expand Up @@ -41,9 +43,11 @@ const CareersPage = () => {

return (
<Layout footerBoxes={FooterBoxes}>
<Helmet>
<title>Celestia - {content.title}</title>
</Helmet>
<SEO
title={seoContent.title}
description={seoContent.description}
image={seoContent.image}
/>
<div className={'careers-page'}>
<main>
<div className={'container'}>
Expand Down
23 changes: 16 additions & 7 deletions src/pages/community.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ import { explore } from "../datas/community/explore";
import { ecosystem } from "../datas/community/ecosystem";
import { FooterBoxes } from "../datas/community/content";
import Layout from "../components/layout";
import { Helmet } from "react-helmet";
import CommunityItem from "../components/modules/community-item";
import Button from "../components/buttons/button";
import Image from "../components/imageComponent";

import { seoContent } from "../datas/community/seoContent";
import SEO from "../components/seo";

const Community = () => {
return (
<Layout footerBoxes={FooterBoxes}>
<Helmet>
<title>Celestia - Community</title>
</Helmet>
<SEO
title={seoContent.title}
description={seoContent.description}
image={seoContent.image}
/>
<div className={"community-page"}>
<main>
<section className='hero'>
Expand Down Expand Up @@ -73,14 +77,19 @@ const Community = () => {
<div className={"container"}>
<div className={"row justify-content-between align-items-center gx-5 gy-3"}>
<div className={"col-12 col-lg-6 col-xl-5 mb-4 mb-lg-0"}>
<div className="image-wrapper">
<div className='image-wrapper'>
<Image style={{ width: `100%` }} alt={ecosystem.title} filename={ecosystem.image} />
</div>
</div>
<div className={"col-12 col-lg-6 col-xl-6 "}>
<h2 className='title'>{ecosystem.title}</h2>
<p className="text">{ecosystem.text}</p>
<Button class={ecosystem.button.class} type={ecosystem.button.type} text={ecosystem.button.text} url={ecosystem.button.url} />
<p className='text'>{ecosystem.text}</p>
<Button
class={ecosystem.button.class}
type={ecosystem.button.type}
text={ecosystem.button.text}
url={ecosystem.button.url}
/>
</div>
</div>
</div>
Expand Down
12 changes: 8 additions & 4 deletions src/pages/developer-portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ import { faqs } from "../datas/developer-portal/faq";
import { community } from "../datas/developer-portal/community";
import { FooterBoxes } from "../datas/developer-portal/content";
import Layout from "../components/layout";
import { Helmet } from "react-helmet";
import IconCard from "../components/modules/icon-card";
import { AnchorLink } from "gatsby-plugin-anchor-links";
import Faq from "../components/modules/faq";

import { seoContent } from "../datas/developer-portal/seoContent";
import SEO from "../components/seo";

const DevPortal = () => {
return (
<Layout footerBoxes={FooterBoxes}>
<Helmet>
<title>Celestia - Developer Portal</title>
</Helmet>
<SEO
title={seoContent.title}
description={seoContent.description}
image={seoContent.image}
/>
<div className={"developer-portal"}>
<main>
<section className='hero'>
Expand Down
Loading