-
Notifications
You must be signed in to change notification settings - Fork 375
/
html.jsx
50 lines (47 loc) · 1.88 KB
/
html.jsx
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
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as React from 'react';
import PropTypes from 'prop-types';
// eslint-disable-next-line react/prefer-stateless-function
export default class extends React.Component {
static propTypes = {
headComponents: PropTypes.node,
postBodyComponents: PropTypes.node,
body: PropTypes.string,
};
static defaultProps = {
headComponents: undefined,
postBodyComponents: undefined,
body: undefined,
};
render() {
const { headComponents, postBodyComponents, body } = this.props;
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
{headComponents}
<link href="/img/favicon.ico" rel="icon" type="image/x-icon" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.42.0/codemirror.min.css" type="text/css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.42.0/addon/fold/foldgutter.min.css" type="text/css" rel="stylesheet" />
<link rel="preconnect" href="https://matomo.devexpress.com" />
<link rel="dns-prefetch" href="https://matomo.devexpress.com" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" />
</head>
<body>
<div
id="___gatsby"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: body }}
/>
{postBodyComponents}
</body>
</html>
);
}
}