Skip to content

Commit

Permalink
- remove unused variables
Browse files Browse the repository at this point in the history
- update gql import
  • Loading branch information
jasonbahl committed Jul 8, 2024
1 parent 058ec81 commit 4eef0e6
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions components/OpenGraph.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
import Head from 'next/head'
import gql from 'graphql-tag'
import { gql } from '@apollo/client'

const OpenGraph = ({ seo } ) => {

const {
breadcrumbs = [],
canonical = '',
cornerstone = false,
focuskw = '',
fullHead = '',
metaDesc = '',
metaKeywords = '',
metaRobotsNoindex = false,
metaRobotsNofollow = false,
opengraphAuthor = '',
opengraphDescription = '',
opengraphImage = null,
opengraphModifiedTime = '',
opengraphPublishedTime = '',
opengraphPublisher = '',
opengraphSiteName = '',
opengraphTitle = '',
opengraphType = '',
opengraphUrl = '',
readingTime = '',
schema = '',
title = '',
twitterDescription = '',
twitterImage = null,
twitterTitle = '',
} = seo

Expand All @@ -43,8 +27,6 @@ const OpenGraph = ({ seo } ) => {
<meta property="og:description" content={opengraphDescription} />
<meta property="og:image" content={opengraphImage?.sourceUrl || '/default-og-image.jpg'} />

{/*<meta name="twitter:card" content={} />*/}
{/*<meta property="twitter:domain" content={} />*/}
<meta property="twitter:url" content={opengraphUrl} />
<meta name="twitter:title" content={twitterTitle} />
<meta name="twitter:description" content={twitterDescription} />
Expand Down

0 comments on commit 4eef0e6

Please sign in to comment.