2018-08-24 12:30:29 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
export default class HTML extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2019-08-23 14:54:51 +02:00
|
|
|
<html
|
|
|
|
className='night'
|
|
|
|
id='__fcc-html'
|
|
|
|
{...this.props.htmlAttributes}
|
|
|
|
lang='en'
|
|
|
|
>
|
2018-08-24 12:30:29 +01:00
|
|
|
<head>
|
|
|
|
<meta charSet='utf-8' />
|
|
|
|
<meta content='ie=edge' httpEquiv='x-ua-compatible' />
|
|
|
|
<meta
|
2019-06-10 20:26:39 +03:00
|
|
|
content='width=device-width, initial-scale=1.0, shrink-to-fit=no'
|
2018-08-24 12:30:29 +01:00
|
|
|
name='viewport'
|
|
|
|
/>
|
2019-06-10 20:26:39 +03:00
|
|
|
<link as='style' href='/css/bootstrap.min.css' rel='preload' />
|
|
|
|
<link href='/css/bootstrap.min.css' rel='stylesheet' />
|
2018-08-24 12:30:29 +01:00
|
|
|
{this.props.headComponents}
|
|
|
|
</head>
|
|
|
|
<body {...this.props.bodyAttributes}>
|
|
|
|
{this.props.preBodyComponents}
|
|
|
|
<div
|
2018-10-20 19:44:42 +09:00
|
|
|
className='tex2jax_ignore'
|
2018-08-24 12:30:29 +01:00
|
|
|
dangerouslySetInnerHTML={{ __html: this.props.body }}
|
|
|
|
id='___gatsby'
|
|
|
|
key={'body'}
|
|
|
|
/>
|
|
|
|
{this.props.postBodyComponents}
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
HTML.propTypes = {
|
|
|
|
body: PropTypes.string,
|
|
|
|
bodyAttributes: PropTypes.object,
|
|
|
|
headComponents: PropTypes.array,
|
|
|
|
htmlAttributes: PropTypes.object,
|
|
|
|
postBodyComponents: PropTypes.array,
|
|
|
|
preBodyComponents: PropTypes.array
|
|
|
|
};
|