diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..cbf0615 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +node_modules/ +.cache/ diff --git a/data/projects.json b/data/projects.json index 0ce4cf1..967fb36 100644 --- a/data/projects.json +++ b/data/projects.json @@ -42,7 +42,7 @@ "url": "https://github.com/ipdb/website" } ], - "description": "Laudem antiopam mea eu. Nam in accusam mediocritatem, eos ad paulo putent, pericula appellantur te ius. Magna debet id cum, probo eloquentiam sea ut. Cu eam graeco disputationi, graece theophrastus no his, duo errem expetendis te. Duo ea soleat ignota temporibus, in vim scaevola salutandi. Postea possit est at, ea vitae necessitatibus vix.\n\nKey visuals in collaboration with [Wojciech Hupert](https://twitter.com/wojciechhupert).", + "description": "Iterating on the creative and visual direction of the IPDB brand and leading the UI design & development of all IPDB web properties.\n\nKey visuals in collaboration with [Wojciech Hupert](https://twitter.com/wojciechhupert).", "techstack": [ "Sketch", "Jekyll", diff --git a/gatsby-config.js b/gatsby-config.js index 7bb8013..89148ec 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -6,26 +6,21 @@ module.exports = { siteUrl: `${url}`, }, plugins: [ - 'gatsby-plugin-react-next', - 'gatsby-plugin-react-helmet', - 'gatsby-transformer-json', - 'gatsby-plugin-offline', - 'gatsby-plugin-remove-trailing-slashes', { resolve: 'gatsby-plugin-sass', options: { includePaths: [ `${__dirname}/node_modules`, `${__dirname}/src/styles` - ] - } + ], + }, }, { resolve: 'gatsby-source-filesystem', options: { name: 'data', path: `${__dirname}/data/`, - } + }, }, { resolve: 'gatsby-plugin-google-analytics', @@ -34,7 +29,11 @@ module.exports = { head: false, anonymize: true, respectDNT: true, - } - } - ] + }, + }, + 'gatsby-plugin-react-next', + 'gatsby-plugin-react-helmet', + 'gatsby-transformer-json', + 'gatsby-plugin-remove-trailing-slashes' + ], } diff --git a/package.json b/package.json index 2d5023d..6573a33 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "gatsby": "^1.9.253", "gatsby-link": "^1.6.41", "gatsby-plugin-google-analytics": "^1.0.31", - "gatsby-plugin-offline": "^1.0.15", "gatsby-plugin-react-helmet": "^2.0.11", "gatsby-plugin-react-next": "^1.0.11", "gatsby-plugin-remove-trailing-slashes": "^1.0.9", diff --git a/src/layouts/index.js b/src/layouts/index.js index 9f3fee8..a5b238c 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -6,7 +6,7 @@ import Footer from '../components/organisms/Footer' import './index.scss' const TemplateWrapper = ({ data, location, children }) => { - const meta = data.allDataJson.edges[0].node + const meta = data.dataJson const isHomepage = location.pathname === '/' return ( @@ -22,34 +22,30 @@ const TemplateWrapper = ({ data, location, children }) => { } TemplateWrapper.propTypes = { - children: PropTypes.any, - data: PropTypes.object, - location: PropTypes.object, + children: PropTypes.func, + data: PropTypes.object.isRequired, + location: PropTypes.object.isRequired, } export default TemplateWrapper export const query = graphql` query metaQuery { - allDataJson { - edges { - node { - title - tagline - description - url - social { - Email - Blog - Twitter - GitHub - Dribbble - } - availability - typekit - googleanalytics - } + dataJson { + title + tagline + description + url + social { + Email + Blog + Twitter + GitHub + Dribbble } + availability + typekit + googleanalytics } } ` diff --git a/src/templates/Project.js b/src/templates/Project.js index d82f055..76c120a 100644 --- a/src/templates/Project.js +++ b/src/templates/Project.js @@ -79,6 +79,7 @@ export const projectQuery = graphql` query ProjectBySlug($slug: String!) { projectsJson(slug: { eq: $slug }) { title + slug img img_more description