chore: add code formatting and linting (#952)
This commit is contained in:
@ -14,12 +14,7 @@ module.exports = class HTML extends React.Component {
|
||||
render() {
|
||||
let css;
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
css = (
|
||||
<style
|
||||
id="gatsby-inlined-css"
|
||||
dangerouslySetInnerHTML={{ __html: stylesStr }}
|
||||
/>
|
||||
);
|
||||
css = <style id="gatsby-inlined-css" dangerouslySetInnerHTML={{ __html: stylesStr }} />;
|
||||
}
|
||||
|
||||
return (
|
||||
@ -27,32 +22,11 @@ module.exports = class HTML extends React.Component {
|
||||
<head>
|
||||
<meta charSet="utf-8" />
|
||||
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="/img/favicon/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="/img/favicon/favicon-32x32.png"
|
||||
sizes="32x32"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="/img/favicon/favicon-16x16.png"
|
||||
sizes="16x16"
|
||||
/>
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="/img/favicon/safari-pinned-tab.svg"
|
||||
color="#96cf05"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" href="/img/favicon/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="/img/favicon/favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="mask-icon" href="/img/favicon/safari-pinned-tab.svg" color="#96cf05" />
|
||||
<meta name="apple-mobile-web-app-title" content="NetlifyCMS" />
|
||||
<meta name="application-name" content="NetlifyCMS" />
|
||||
{this.props.headComponents}
|
||||
@ -64,15 +38,11 @@ module.exports = class HTML extends React.Component {
|
||||
</head>
|
||||
<body {...this.props.bodyAttributes}>
|
||||
{this.props.preBodyComponents}
|
||||
<div
|
||||
key={'body'}
|
||||
id="___gatsby"
|
||||
dangerouslySetInnerHTML={{ __html: this.props.body }}
|
||||
/>
|
||||
<div key={'body'} id="___gatsby" dangerouslySetInnerHTML={{ __html: this.props.body }} />
|
||||
{this.props.postBodyComponents}
|
||||
<Gitter room="netlify/NetlifyCMS" />
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
<script src="//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js"></script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js" />
|
||||
<script src="//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js" />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
Reference in New Issue
Block a user