-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #462 from georgetown-cset/460-add-opengraph-tags
Add OpenGraph tags to home and detail pages
- Loading branch information
Showing
5 changed files
with
134 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
|
||
import { MetaTags } from '@eto/social-cards'; | ||
import socialCard from '@eto/social-cards/dist/tools/parat.png'; | ||
|
||
const MetaTagsWrapper = ({ | ||
title = "PARAT \u2013 Emerging Technology Observatory", | ||
subtitle = undefined, | ||
description = "ETO's hub for data on private-sector companies and their AI activities." | ||
}) => { | ||
const fullTitle = subtitle ? `${subtitle} \u2013 ${title}` : title; | ||
|
||
return ( | ||
<> | ||
<title>{fullTitle}</title> | ||
<MetaTags | ||
title={fullTitle} | ||
description={description} | ||
socialCardUrl={socialCard} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
export default MetaTagsWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters