diff --git a/src/pages/goodies.jsx b/src/pages/goodies.jsx
index 701c2dff..05db8313 100644
--- a/src/pages/goodies.jsx
+++ b/src/pages/goodies.jsx
@@ -3,10 +3,17 @@ import PropTypes from 'prop-types'
import { graphql, Link } from 'gatsby'
import PostImage from '../components/Post/PostImage'
import Page from '../templates/Page'
-
import styles from './goodies.module.scss'
-const Goodies = ({ data }) => {
+const page = {
+ frontmatter: {
+ title: 'Goodies',
+ description:
+ 'Goodies released by designer & developer Matthias Kretschmann.'
+ }
+}
+
+const Goodies = ({ data, location }) => {
const edges = data.goodies.edges
const GoodiesThumbs = edges.map(({ node }) => {
@@ -25,7 +32,11 @@ const Goodies = ({ data }) => {
)
})
- return
{GoodiesThumbs}
+ return (
+
+ {GoodiesThumbs}
+
+ )
}
Goodies.propTypes = {
diff --git a/src/pages/photos.jsx b/src/pages/photos.jsx
index e9d9e46c..e5b8e1cc 100644
--- a/src/pages/photos.jsx
+++ b/src/pages/photos.jsx
@@ -6,7 +6,14 @@ import Page from '../templates/Page'
import styles from './photos.module.scss'
-const Photos = ({ data }) => {
+const page = {
+ frontmatter: {
+ title: 'Photos',
+ description: 'Personal photos of designer & developer Matthias Kretschmann.'
+ }
+}
+
+const Photos = ({ data, location }) => {
const edges = data.photos.edges
const PhotoThumbs = edges.map(({ node }) => {
@@ -25,7 +32,12 @@ const Photos = ({ data }) => {
})
return (
-
+
{PhotoThumbs}
)
diff --git a/src/templates/Page.jsx b/src/templates/Page.jsx
index 0d7904aa..275921e7 100644
--- a/src/templates/Page.jsx
+++ b/src/templates/Page.jsx
@@ -1,15 +1,21 @@
import React from 'react'
import PropTypes from 'prop-types'
+import Helmet from 'react-helmet'
+import SEO from '../components/atoms/SEO'
import Layout from '../components/Layout'
-
import styles from './Page.module.scss'
-const Page = ({ title, location, section, children }) => {
+const Page = ({ title, location, section, children, post }) => {
return (
-
- {title}
- {section ? : children}
-
+ <>
+
+
+
+
+ {title}
+ {section ? : children}
+
+ >
)
}
@@ -17,7 +23,8 @@ Page.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.any.isRequired,
section: PropTypes.string,
- location: PropTypes.object
+ location: PropTypes.object,
+ page: PropTypes.object
}
export default Page
diff --git a/src/templates/Post.jsx b/src/templates/Post.jsx
index f2f97817..744be972 100644
--- a/src/templates/Post.jsx
+++ b/src/templates/Post.jsx
@@ -32,13 +32,13 @@ const Post = ({ data, location }) => {
return (
+
+ {style && }
+
+
+
+
-
- {style && }
-
-
-
-
{type === 'post' && }