From 6bbf35b32e9619fdb29a1cf0cfd1aba5fccd2e42 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 26 Aug 2018 21:28:06 +0200 Subject: [PATCH] queries refactoring --- src/components/Layout.jsx | 65 +------- src/components/atoms/LogoUnit.jsx | 39 +++-- src/components/atoms/ProjectImage.jsx | 6 +- src/components/atoms/SEO.jsx | 100 ++++++++---- src/components/atoms/Vcard.jsx | 213 +++++++++++++++----------- src/components/molecules/Head.jsx | 51 +++--- src/components/molecules/Networks.jsx | 51 ++++-- src/components/organisms/Footer.jsx | 20 ++- src/components/organisms/Header.jsx | 40 +++-- src/templates/Project.jsx | 25 +-- 10 files changed, 330 insertions(+), 280 deletions(-) diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index 35ec8b2..1da111c 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -1,71 +1,22 @@ import React, { Fragment } from 'react' import PropTypes from 'prop-types' -import { StaticQuery, graphql } from 'gatsby' import Head from './molecules/Head' import Header from './organisms/Header' import Footer from './organisms/Footer' import styles from './Layout.module.scss' const Layout = ({ children, location }) => { + const isHomepage = location.pathname === '/' + return ( - { - const meta = data.dataYaml - const isHomepage = location.pathname === '/' + + +
- return ( - - -
+
{children}
-
{children}
- -