-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgatsby-ssr.js
31 lines (29 loc) · 1.06 KB
/
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
/**
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
// eslint-disable-next-line no-unused-vars
const React = require('react')
export const onPreRenderHTML = ({
getHeadComponents,
replaceHeadComponents
}) => {
const headComponents = getHeadComponents()
headComponents.push(
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Xposed-Modules-Repo/modules@webfont/Roboto-VF.css" />
)
headComponents.push(
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Xposed-Modules-Repo/modules@webfont/FZ-SC-VF.css" />
)
headComponents.push(
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons' />
)
headComponents.push(
<meta name="google-site-verification" content="No7OKPupiyITd5MI15QlaU1_u9raHcajSn8ffTPUGNI" />
)
headComponents.push(
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9024466979216375" crossorigin="anonymous"></script>
)
replaceHeadComponents(headComponents)
}