) =>
+
+
+
+
+ { generate_links(sections) }
+
+ { generate_sections(sections) }
+
diff --git a/src/elements/index.js b/src/elements/index.js
index 68fd4bd..5654363 100644
--- a/src/elements/index.js
+++ b/src/elements/index.js
@@ -6,13 +6,10 @@ export {
Name as HeaderName
} from "./header"
-export {
- Body
-} from "./body"
+export { Body } from "./body"
-export {
- default as Section
-} from "./section"
+export { default as Section } from "./section"
+export type { SectionDescription } from "./section"
export {
default as Project,
@@ -23,4 +20,5 @@ export {
H1, H2, Title, P
} from "./text"
-export { default as Content } from "./content"
+export { default as content } from "./content"
+
diff --git a/src/elements/section.js b/src/elements/section.js
index 7fdd68e..93a9136 100644
--- a/src/elements/section.js
+++ b/src/elements/section.js
@@ -18,8 +18,13 @@ const Style = styled.section`
const Title = H1
-export default (props: { title: string, children?: Node }) =>
diff --git a/src/util/index.js b/src/util/index.js
new file mode 100644
index 0000000..44150d8
--- /dev/null
+++ b/src/util/index.js
@@ -0,0 +1,3 @@
+//@flow
+
+export { default as map } from "./map"
diff --git a/src/util/map.js b/src/util/map.js
new file mode 100644
index 0000000..89cb133
--- /dev/null
+++ b/src/util/map.js
@@ -0,0 +1,4 @@
+//@flow
+
+export default (f: (A, number) => B) => (elements: Array) => elements.map(f)
+
diff --git a/test/index.js b/test/index.js
index e69de29..00333ee 100644
--- a/test/index.js
+++ b/test/index.js
@@ -0,0 +1,7 @@
+//@flow
+
+import util from "./util"
+
+describe("homepage", () => {
+ util()
+})
diff --git a/test/util/index.js b/test/util/index.js
new file mode 100644
index 0000000..bb2df67
--- /dev/null
+++ b/test/util/index.js
@@ -0,0 +1,9 @@
+//@flow
+
+import map from "./map"
+
+export default () => {
+ describe("util", () => {
+ map()
+ })
+}
diff --git a/test/util/map.js b/test/util/map.js
new file mode 100644
index 0000000..c367eb6
--- /dev/null
+++ b/test/util/map.js
@@ -0,0 +1,13 @@
+//@flow
+import { map } from "../../src/util"
+import assert from "assert"
+
+export default () => {
+ describe("map", () => {
+ const numbers = [1, 2, 3, 4, 5, 6, 7]
+ const numbers_plus_1 = map(x => x + 1)(numbers)
+ it("add one to all members", () => {
+ assert.deepEqual(numbers_plus_1, [2, 3, 4, 5, 6, 7, 8])
+ })
+ })
+}
diff --git a/webpack.config.js b/webpack.config.js
index c9efa0e..713932e 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -102,7 +102,7 @@ const development = config => Object.assign({ }, config(), {
stats: 'errors-only',
host: process.env.HOST,
- port: 3000,
+ port: 5000,
compress: true,
overlay: true,
hot: true,