-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatic.config.js
92 lines (82 loc) · 2.94 KB
/
static.config.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
import React from "react"
import { ServerStyleSheet } from "styled-components"
import { resetStyles } from "./src/utility/build"
export default {
getSiteData: () => ({
title: "Elixir Camp 2018",
}),
// Define the routes of the application
getRoutes: async () => [
{
path: "/",
component: "src/containers/Home",
},
{
path: "/code-of-conduct",
component: "src/containers/CodeOfConduct",
},
{
path: "/DiversityAndInclusion",
component: "src/containers/DiversityAndInclusion",
},
{
is404: true,
component: "src/containers/404",
},
],
// Ensure we server-render styled-components
renderToHtml: (render, Comp, meta) => {
const sheet = new ServerStyleSheet()
const html = render(sheet.collectStyles(<Comp />))
meta.styleTags = sheet.getStyleElement()
return html
},
// Define boilerplate HTML stuff and bring in required Google fonts
Document: ({ Html, Head, Body, children, siteData, renderMeta }) => (
<Html>
<Head>
<meta charSet="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>
Elixir Camp 2019 - 25th-28th October, Camp Wombaroo, Mittagong NSW
</title>
<link rel="canonical" href="http://elixir.camp/" />
<meta property="og:type" content="website" />
<meta
property="og:title"
content="Elixir Camp 2019 - 25th-28th October, Camp Wombaroo, Mittagong NSW"
/>
<meta
property="og:description"
content="Elixir Camp is a place for people interested in Elixir, Erlang and related technologies to gather, network, share ideas and generally have a great time."
/>
<meta property="og:url" content="http://elixir.camp/" />
<meta property="og:image" content="http://elixir.camp/logo.png" />
<meta property="og:site_name" content="Elixir Camp 2019" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="http://elixir.camp/logo.png" />
<meta
name="twitter:title"
content="Elixir Camp 2019 - 25th-28th October, Camp Wombaroo, Mittagong NSW"
/>
<meta
name="twitter:description"
content="Elixir Camp is a place for people interested in Elixir, Erlang and related technologies to gather, network, share ideas and generally have a great time."
/>
<meta name="twitter:site" content="@elixircamp_au" />
<meta name="twitter:creator" content="@elixircamp_au" />
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Playfair+Display:400,700"
rel="stylesheet"
/>
<style dangerouslySetInnerHTML={{ __html: resetStyles }} />
{renderMeta.styleTags}
<title>{siteData.title}</title>
</Head>
<Body>{children}</Body>
</Html>
),
}