Skip to content

Commit

Permalink
Merge pull request #236 from celestiaorg/hotfix/meat-title-update-v2
Browse files Browse the repository at this point in the history
Hotfix/meat title update v2
  • Loading branch information
alex-beckett authored Jul 18, 2023
2 parents 00d4932 + dd788d2 commit 91113f9
Show file tree
Hide file tree
Showing 110 changed files with 177 additions and 71 deletions.
11 changes: 4 additions & 7 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
module.exports = {
siteMetadata: {
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.`,
Expand Down Expand Up @@ -82,8 +77,10 @@ module.exports = {
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: "https://dev.lazyledger.org",
sitemap: "https://dev.lazyledger.org/sitemap.xml",
host: "https://celestia.org",
// host: "https://dev.lazyledger.org",
sitemap: "https://celestia.org/sitemap.xml",
// sitemap: "https://dev.lazyledger.org/sitemap.xml",
output: "/robots.txt",
policy: [{ userAgent: '*', allow: '/' }]
}
Expand Down
11 changes: 6 additions & 5 deletions src/components/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from "prop-types";
import React from "react";
import { Helmet } from "react-helmet";

function SEO({ description, lang, meta, title, image }) {
function SEO({ description, lang, meta, title, image, ogTitle }) {
const { site } = useStaticQuery(graphql`
query DefaultSEOQuery {
site {
Expand All @@ -19,6 +19,7 @@ function SEO({ description, lang, meta, title, image }) {
`);

const metaTitle = title || site.siteMetadata.title;
const metaOgTitle = ogTitle || site.siteMetadata.title;
const metaDescription = description || site.siteMetadata.description;
const metaImage = image ? site.siteMetadata.siteUrl + image : site.siteMetadata.siteUrl + site.siteMetadata.image;

Expand All @@ -34,7 +35,7 @@ function SEO({ description, lang, meta, title, image }) {
},
{
property: `og:title`,
content: metaTitle,
content: metaOgTitle,
},
{
property: `og:description`,
Expand All @@ -54,7 +55,7 @@ function SEO({ description, lang, meta, title, image }) {
},
{
name: `twitter:title`,
content: metaTitle,
content: metaOgTitle,
},
{
name: `twitter:site`,
Expand All @@ -65,9 +66,8 @@ function SEO({ description, lang, meta, title, image }) {
content: metaDescription,
},
]
.concat(meta)}
.concat(meta)}
title={metaTitle}
titleTemplate={`%s | ${site.siteMetadata.title}`}
/>
);
}
Expand All @@ -84,6 +84,7 @@ SEO.propTypes = {
lang: PropTypes.string,
meta: PropTypes.array,
title: PropTypes.string.isRequired,
ogTitle: PropTypes.string,
image: PropTypes.string,
};

Expand Down
3 changes: 2 additions & 1 deletion src/datas/careers/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Careers | celestia.org",
title: "Celestia - Careers",
ogTitle: "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",
};
3 changes: 2 additions & 1 deletion src/datas/community/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Community | celestia.org",
title: "Celestia - Community",
ogTitle: "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",
};
3 changes: 2 additions & 1 deletion src/datas/developer-portal/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Developer Portal | celestia.org",
title: "Celestia - Developer Portal",
ogTitle: "Developer Portal | celestia.org",
description: "The homepage for Celestia developers. Tutorials. Resources. Community.",
image: "/developer-portal-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/ecosystem/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Ecosystem | celestia.org",
title: "Celestia - Ecosystem",
ogTitle: "Ecosystem | celestia.org",
description: "Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem.",
image: "/ecosystem-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/faq/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "FAQ | celestia.org",
title: "Celestia - FAQ",
ogTitle: "FAQ | celestia.org",
description: "Find answers to frequently asked questions about Celestia.",
image: "/celestia-default-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/glossary/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Glossary | celestia.org",
title: "Celestia - Glossary",
ogTitle: "Glossary | celestia.org",
description: "Explore new terms about Celestia and modular blockchains.",
image: "/celestia-default-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/home/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Home | celestia.org",
title: "Celestia - Home",
ogTitle: "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",
};
3 changes: 2 additions & 1 deletion src/datas/press/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Press | celestia.org",
title: "Celestia - Press",
ogTitle: "Press | celestia.org",
description: "Find branding, news, social channels, and press contacts.",
image: "/celestia-default-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/resources/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Resources | celestia.org",
title: "Celestia - Resources",
ogTitle: "Resources | celestia.org",
description: "Explore blog posts, podcasts episodes, YouTube videos, and research papers about the Celestia network.",
image: "/celestia-default-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/team/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Team | celestia.org",
title: "Celestia - Team",
ogTitle: "Team | celestia.org",
description: "Meet the team building the Celestia network.",
image: "/celestia-default-og-image.jpg",
};
3 changes: 2 additions & 1 deletion src/datas/technology/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "Technology | celestia.org",
title: "Celestia - Technology",
ogTitle: "Technology | celestia.org",
description: "Learn about the core technology powering Celestia's new modular blockchain architecture.",
image: "/celestia-default-og-image.jpg",
};
5 changes: 3 additions & 2 deletions src/datas/what-is-celestia/seoContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const seoContent = {
title: "What is Celestia? | celestia.org",
title: "Celestia - What is Celestia?",
ogTitle: "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",
};
};
1 change: 1 addition & 0 deletions src/pages/careers.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const CareersPage = () => {
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={'careers-page'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/community.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Community = () => {
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={"community-page"}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/developer-portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const DevPortal = () => {
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={"developer-portal"}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/ecosystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const EcosystemPage = () => {
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={"ecosystem-page"}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const TeamPage = () => {
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={'faq-page'}>
Expand Down
7 changes: 6 additions & 1 deletion src/pages/glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ class GlossaryPage extends React.Component {
render() {
return (
<Layout footerBoxes={FooterBoxes}>
<SEO title={seoContent.title} description={seoContent.description} image={seoContent.image} />
<SEO
title={seoContent.title}
description={seoContent.description}
ogTitle={seoContent.ogTitle}
image={seoContent.image}
/>
<div className={"glossary-page"}>
<main>
<div className={"container"}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/block-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/block-producer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/block-space.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/blockchain-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class GlossaryContent extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
92 changes: 47 additions & 45 deletions src/pages/glossary/composability.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"
import * as React from "react";

import {FooterBoxes} from "../../datas/team/content";
import { FooterBoxes } from "../../datas/team/content";
import Layout from "../../components/layout";
import BreadCrumb from "../../components/breadcrumb";
import SocialShare from "../../components/socialShare";
Expand All @@ -9,53 +9,55 @@ import GlossaryNav from "../../components/glossary-nav";
import { seoContent } from "../../datas/glossary/seoContent";
import SEO from "../../components/seo";


const title = 'Composability';
const title = "Composability";

class GlossaryContent extends React.Component {
render() {
return (
<div className={'glossary-content'}>
<p>The ability for applications on a blockchain to read and write state to each other. Composability allows applications to coordinate with and build on top of one another such that it enables an ecosystem of interconnected applications.
</p>

<p>For example, an application that automates liquidity strategies on Uniswap requires it to be reading and writing the state of Uniswap’s contracts.
</p>

</div>
)
}
render() {
return (
<div className={"glossary-content"}>
<p>
The ability for applications on a blockchain to read and write state to each other. Composability allows applications to
coordinate with and build on top of one another such that it enables an ecosystem of interconnected applications.
</p>

<p>
For example, an application that automates liquidity strategies on Uniswap requires it to be reading and writing the state of
Uniswap’s contracts.
</p>
</div>
);
}
}

class GlossarySubpage extends React.Component {
render() {
return (
<Layout footerBoxes={FooterBoxes}>
<div className={'glossary-subpage'}>
<SEO
title={'Celestia - '+title}
description={seoContent.description}
image={seoContent.image}
/>
<main>
<div className={'container'}>
<BreadCrumb title={title}/>
<h1 className={'main mb-4'}>{title}</h1>

<SocialShare title={title} url={this.props.location.href}/>

<GlossaryContent/>

</div>

<div className={'container wide'}>
<GlossaryNav url={this.props.location.state && this.props.location.state.url}/>
</div>
</main>
</div>
</Layout>
)
}
render() {
return (
<Layout footerBoxes={FooterBoxes}>
<div className={"glossary-subpage"}>
<SEO
title={"Celestia - " + title}
description={seoContent.description}
ogTitle={"Celestia - " + title}
image={seoContent.image}
/>
<main>
<div className={"container"}>
<BreadCrumb title={title} />
<h1 className={"main mb-4"}>{title}</h1>

<SocialShare title={title} url={this.props.location.href} />

<GlossaryContent />
</div>

<div className={"container wide"}>
<GlossaryNav url={this.props.location.state && this.props.location.state.url} />
</div>
</main>
</div>
</Layout>
);
}
}

export default GlossarySubpage
export default GlossarySubpage;
1 change: 1 addition & 0 deletions src/pages/glossary/consensus-algorithm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/consensus-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
1 change: 1 addition & 0 deletions src/pages/glossary/consensus.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class GlossarySubpage extends React.Component {
<SEO
title={'Celestia - '+title}
description={seoContent.description}
ogTitle={'Celestia - '+title}
image={seoContent.image}
/>
<div className={'glossary-subpage'}>
Expand Down
Loading

0 comments on commit 91113f9

Please sign in to comment.