-
Notifications
You must be signed in to change notification settings - Fork 1
/
html.js
95 lines (89 loc) · 2.89 KB
/
html.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
module.exports = React.createClass({
propTypes () {
return {
title: React.PropTypes.string,
};
},
render () {
const title = DocumentTitle.rewind();
let cssLink;
let environment = process.env.NODE_ENV;
if (environment === 'production' || environment === 'staging') {
cssLink = <link rel="stylesheet" href={prefixLink('/styles.css')} />
}
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="author" content="Julia Sun" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0 maximum-scale=1.0"
/>
<meta
name="description"
content="Cal's student run creative agency, on a mission to make Berkeley beautiful."
/>
<meta
name="keywords"
content="innovative, design, innovative design, college, berkeley, design club, design organization, professional serfices, berkeley design club, innod, innod at cal, make berkeley beautiful"
/>
<meta
property="og:image"
content="http://innovativedesign.club/img/Logo.png"
/>
<meta
property="og:title"
content="Innovative Design"
/>
<meta
property="og:type"
content="website" />
<meta
property="og:url"
content="http://innovativedesign.club"
/>
<title>{ title }</title>
<link
rel="icon"
type="img/png"
href={ prefixLink('/img/Logo.png') }
/>
<link
href='https://fonts.googleapis.com/css?family=Lato:400,400italic,700'
rel='stylesheet'
type='text/css'
/>
<link
href='https://fonts.googleapis.com/css?family=Open+Sans'
rel='stylesheet'
type='text/css'
/>
<link
href='https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,700,800,900'
rel='stylesheet'
type='text/css'
/>
<link
href='https://fonts.googleapis.com/css?family=Fira+Sans:400,300,300italic,400italic,500,500italic,700,700italic'
rel='stylesheet'
type='text/css'
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"
/>
{ cssLink }
</head>
<body>
<div id="react-mount" dangerouslySetInnerHTML={{ __html: this.props.body }} />
<script src={ prefixLink('/bundle.js') } />
</body>
</html>
);
}
});