Skip to content

Commit

Permalink
Merge pull request #211 from comicrelief/metatags
Browse files Browse the repository at this point in the history
#210 fix image metatag as no relative urls are allowed
  • Loading branch information
adamclark-dev authored Dec 10, 2019
2 parents 20e465f + b4a6e58 commit 38530e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added public/images/gift-aid-1200-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<meta http-equiv="Referrer-Policy" content="same-origin">

<meta name="theme-color" content="#000000">
<meta property="og:image" content="%PUBLIC_URL%/images/gift-aid-1200-1200.png" />
<meta property="og:title" content="Gift Aid your donation" />
<meta property="og:site_name" content="Comic Relief" />

<!--
manifest.json provides metadata used when your web app is added to the
Expand Down
5 changes: 1 addition & 4 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function App (props) {
firstname: undefined,
giftAidChoice: undefined,
};

const [successState, setSuccessState] = useState(initialState); // initialise successState state

/**
Expand Down Expand Up @@ -90,9 +90,6 @@ function App (props) {
Gift Aid declaration | Comic Relief
</title>
<meta name="description" content={site.get('meta').description} />
<meta property="og:title" content="Gift Aid your donation" />
<meta property="og:image" content="/images/thank-you-mob.jpg" />
<meta property="og:site_name" content="Comic Relief" />
<meta property="og:url" content={window.location.href} />
<meta property="og:description" content={site.get('meta').description} />
<meta name="keywords" content={site.get('meta').keywords} />
Expand Down

0 comments on commit 38530e3

Please sign in to comment.