File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
3+
4+ export default function HTML ( props ) {
5+ return (
6+ < html { ...props . htmlAttributes } lang = "en" >
7+ < head >
8+ < meta charSet = "utf-8" />
9+ < meta httpEquiv = "x-ua-compatible" content = "ie=edge" />
10+ < meta
11+ name = "viewport"
12+ content = "width=device-width, initial-scale=1, shrink-to-fit=no"
13+ />
14+ { props . headComponents }
15+ </ head >
16+ < body { ...props . bodyAttributes } >
17+ { props . preBodyComponents }
18+ < div
19+ key = { `body` }
20+ id = "___gatsby"
21+ dangerouslySetInnerHTML = { { __html : props . body } }
22+ />
23+ { props . postBodyComponents }
24+ </ body >
25+ </ html >
26+ ) ;
27+ }
28+
29+ HTML . propTypes = {
30+ htmlAttributes : PropTypes . object ,
31+ headComponents : PropTypes . array ,
32+ bodyAttributes : PropTypes . object ,
33+ preBodyComponents : PropTypes . array ,
34+ body : PropTypes . string ,
35+ postBodyComponents : PropTypes . array ,
36+ } ;
You can’t perform that action at this time.
0 commit comments