Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
maybe fix twitter card image
Browse files Browse the repository at this point in the history
  • Loading branch information
johngruen committed Sep 21, 2017
1 parent bd0579d commit 2988649
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/pages/homepage/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const { Footer } = require("../../footer-view.js");
const { Localized } = require("fluent-react/compat");

class Head extends React.Component {
generateFullLink(link) {
return this.props.backend + link;
}

render() {
return (
Expand All @@ -29,7 +32,7 @@ class Head extends React.Component {
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@firefox" />
<meta property="og:image" content={ this.props.staticLink("/static/img/og-image.png") } />
<meta name="twitter:image" content={ this.props.staticLink("/static/img/twitter-image.png") } />
<meta name="twitter:image" content={this.generateFullLink("/static/img/twitter-image.png")} />
</reactruntime.HeadTemplate>
);
}
Expand Down

0 comments on commit 2988649

Please sign in to comment.