Skip to content

Commit

Permalink
feat: remove unnecessary dissalow
Browse files Browse the repository at this point in the history
  • Loading branch information
jandiralceu committed Sep 15, 2024
1 parent ada213d commit d096455
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ AWS_ACCESS_KEY=
AWS_SECRET_KEY=
AWS_REGION=
AWS_BUCKET_NAME=
AWS_DISTRIBUTION_ID=
AWS_DISTRIBUTION_ID=

# Google related variables
GATSBY_GOOGLE_TAG_MANAGER_ID=
2 changes: 0 additions & 2 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const config: GatsbyConfig = {
{
userAgent: "*",
allow: ["/"],
disallow: [],
},
],
},
Expand Down Expand Up @@ -134,7 +133,6 @@ const config: GatsbyConfig = {
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: process.env.GATSBY_GOOGLE_TAG_MANAGER_ID,
routeChangeEventName: "page_change",
enableWebVitalsTracking: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "1.0.0",
"private": true,
"description": "jandir.co",
"author": "Jandir A. Cutabiala",
"author": "Jandir Alceu Cutabiala",
"keywords": [
"gatsby",
"react",
Expand Down
30 changes: 11 additions & 19 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,28 @@ export const Head: HeadFC = () => {
}
}
`);
const { siteUrl, title, description, author } = site.siteMetadata;

return (
<>
<title>{site.siteMetadata.title}</title>
<meta name="description" content={site.siteMetadata.description} />
<meta name="author" content={site.siteMetadata.author.name} />
<title>{title}</title>
<meta name="description" content={description} />
<meta name="author" content={author.name} />
{/* Open Graph meta options */}
<meta property="og:type" content="website" />
<meta property="og:title" content={site.siteMetadata.title} />
<meta property="og:description" content={site.siteMetadata.description} />
<meta property="og:url" content={site.siteMetadata.siteUrl} />
<meta
property="og:image"
content={`${site.siteMetadata.siteUrl}${file.publicURL}`}
/>
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:url" content={siteUrl} />
<meta property="og:image" content={file.publicURL} />
<meta property="og:image:width" content="2116" />
<meta property="og:image:height" content="2646" />
<meta property="og:image:type" content="image/jpeg" />

{/* Twitter meta options */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={site.siteMetadata.title} />
<meta
name="twitter:description"
content={site.siteMetadata.description}
/>
<meta
name="twitter:image"
content={`${site.siteMetadata.siteUrl}${file.publicURL}`}
/>
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={file.publicURL} />
</>
);
};

0 comments on commit d096455

Please sign in to comment.