Skip to content

Commit

Permalink
add link previews
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 22, 2024
1 parent 8b5276d commit 6e3c2e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/Head/Head.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import WithCurrentUser from '../HOCs/WithCurrentUser/WithCurrentUser';
import WithCurrentProject from '../AdminPane/HOCs/WithCurrentProject/WithCurrentProject';
import WithCurrentChallenge from '../AdminPane/HOCs/WithCurrentChallenge/WithCurrentChallenge';
import { injectIntl } from 'react-intl';
import Image from '../../static/images/bg-highway.jpg'
import _get from 'lodash/get'
import _isEmpty from 'lodash/isEmpty'

Expand Down Expand Up @@ -69,6 +70,17 @@ export const HeadTitle = (props) => {
return (
<Helmet>
<title>{formatTitle(props)}</title>
<meta property="og:title" content={formatTitle(props)} />
<meta name="description" content={props.challenge ? props.challenge?.description: "Navigate to Maproulette.org"} />
<meta property="og:description" content={"description"} />
<meta property="og:image" content={Image} />
<meta
property="og:url"
content={window.location.pathname + window.location.search}
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image:alt" content={"maproulette image"} />
<meta name="twitter:site" content={""} />
</Helmet>
)
}
Expand Down

0 comments on commit 6e3c2e1

Please sign in to comment.