forked from carbon-design-system/carbon-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-ssr.js
37 lines (36 loc) · 990 Bytes
/
gatsby-ssr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* eslint-disable import/prefer-default-export */
import React from 'react';
import ogimage from './src/images/ogimage.png';
export const onRenderBody = ({ setHeadComponents }) => {
setHeadComponents([
<meta key="og:image" property="og:image" content={ogimage} />,
<meta
key="og:image:alt"
property="og:image:alt"
content="Carbon Design System logo"
/>,
<meta key="twitter:image" property="og:image" content={ogimage} />,
<meta
key="twitter:image:alt"
property="twitter:image:alt"
content="Carbon Design System logo"
/>,
<meta property="og:type" key="og:type" content="website" />,
<meta
property="twitter:card"
key="twitter:card"
content="summary_large_image"
/>,
<meta
property="twitter:site"
key="twitter:site"
content="@_carbondesign"
/>,
<script
src="https://cdn.usefathom.com/script.js"
spa="auto"
site="VMSGXQRS"
defer
/>,
]);
};