Skip to content

Commit

Permalink
Streamline metadata (#97)
Browse files Browse the repository at this point in the history
* Update README.md

* linting

* Finetuning metadata

* Long hyphen

* Updated profile meta title

* Updated twitter card title

* Removed period

* Reverted README.md
  • Loading branch information
eriknson authored Sep 11, 2023
1 parent e474654 commit 4c8314f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config: GatsbyConfig = {
siteMetadata: {
title: 'MetaMask Snaps Directory',
description:
'Discover and customize your web3 experience with the MetaMask Snaps directory. Explore various community Snaps to enhance your web3 interactions and unlock new possibilities.',
'Explore community-built Snaps to customize your web3 experience via our official directory.',
siteUrl: 'https://snaps.metamask.io',
author: 'MetaMask',
},
Expand Down
6 changes: 3 additions & 3 deletions src/pages/snap/{Snap.location}/{Snap.slug}.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ type HeadProps = SnapPageProps & {
};

export const Head: FunctionComponent<HeadProps> = ({ data }) => {
const title = `${data.snap.name} - ${data.site.siteMetadata.title}`;
const description = `Discover and install ${data.snap.name} on the MetaMask Snaps Directory to enhance your web3 experience. Easily find and install useful Snaps to customize your MetaMask wallet.`;
const title = `${data.snap.name} on the MetaMask Snaps Directory`;
const description = `Customize your web3 experience with ${data.snap.name}.`;
const image = `${data.site.siteMetadata.siteUrl}${data.snap.banner.publicURL}`;

return (
Expand All @@ -251,7 +251,7 @@ export const Head: FunctionComponent<HeadProps> = ({ data }) => {
<meta name="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content={data.site.siteMetadata.author} />
<meta name="twitter:title" content={title} />
<meta name="twitter:title" content={data.snap.name} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
</>
Expand Down

0 comments on commit 4c8314f

Please sign in to comment.