diff --git a/gatsby-node.js b/gatsby-node.js index b57858d..d10f09a 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,30 +1,27 @@ const _ = require("lodash") -const Promise = require("bluebird") -const path = require("path") -const select = require(`unist-util-select`) -const fs = require(`fs-extra`) +const Promise = require('bluebird') +const path = require('path') exports.createPages = ({ graphql, boundActionCreators }) => { const { createPage } = boundActionCreators return new Promise((resolve, reject) => { - const pages = [] const blogPost = path.resolve("./src/templates/blog-post.js") resolve( graphql( ` - { - allMarkdownRemark(limit: 1000) { - edges { - node { - frontmatter { - path + { + allMarkdownRemark(limit: 1000) { + edges { + node { + frontmatter { + path + } + } } } } - } - } - ` + ` ).then(result => { if (result.errors) { console.log(result.errors) diff --git a/package-lock.json b/package-lock.json index 0b67586..8b4ce5d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5387,15 +5387,6 @@ "babel-runtime": "6.26.0" } }, - "gatsby-plugin-manifest": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/gatsby-plugin-manifest/-/gatsby-plugin-manifest-1.0.8.tgz", - "integrity": "sha512-29kLnhPvnzUzTXZXGyrbxoC0tF2c358SBUJH4Ui8dM63yi+3D/Vfvz4FXU8wd9WvjY+dU4yoE/12KUSRrqT7ig==", - "requires": { - "babel-runtime": "6.26.0", - "bluebird": "3.5.0" - } - }, "gatsby-plugin-offline": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/gatsby-plugin-offline/-/gatsby-plugin-offline-1.0.10.tgz", @@ -5405,16 +5396,6 @@ "sw-precache": "5.2.0" } }, - "gatsby-plugin-preact": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/gatsby-plugin-preact/-/gatsby-plugin-preact-1.0.12.tgz", - "integrity": "sha512-78SbJ5RAUDYaaxYre1c3AUVOjDhoDstBTJHqyLQeMsrrBEFpTd9r1qF5s4AEjFVWFr9HPDWnVi4C5/7acqPbbw==", - "requires": { - "babel-runtime": "6.26.0", - "preact": "8.2.5", - "preact-compat": "3.17.0" - } - }, "gatsby-plugin-react-helmet": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-1.0.8.tgz", @@ -7003,14 +6984,6 @@ "pngquant-bin": "3.1.1" } }, - "immutability-helper": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/immutability-helper/-/immutability-helper-2.4.0.tgz", - "integrity": "sha512-rW/L/56ZMo9NStMK85kFrUFFGy4NeJbCdhfrDHIZrFfxYtuwuxD+dT3mWMcdmrNO61hllc60AeGglCRhfZ1dZw==", - "requires": { - "invariant": "2.2.2" - } - }, "immutable": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.2.tgz", @@ -10492,36 +10465,6 @@ "uniqs": "2.0.0" } }, - "preact": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/preact/-/preact-8.2.5.tgz", - "integrity": "sha1-y/o5YqgBJ2gVn20B1G+cHrMhPAo=" - }, - "preact-compat": { - "version": "3.17.0", - "resolved": "https://registry.npmjs.org/preact-compat/-/preact-compat-3.17.0.tgz", - "integrity": "sha1-Uoz9/DARkMGg9HVnM2vh9L4CZrM=", - "requires": { - "immutability-helper": "2.4.0", - "preact-render-to-string": "3.6.3", - "preact-transition-group": "1.1.1", - "prop-types": "15.5.10", - "standalone-react-addons-pure-render-mixin": "0.1.1" - } - }, - "preact-render-to-string": { - "version": "3.6.3", - "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-3.6.3.tgz", - "integrity": "sha1-SB0NW9rJGS0zR1V0N9XNAKoxIEM=", - "requires": { - "pretty-format": "3.8.0" - } - }, - "preact-transition-group": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/preact-transition-group/-/preact-transition-group-1.1.1.tgz", - "integrity": "sha1-8KSTJ+pRXs406ivoZMSn0p5dbhA=" - }, "prepend-http": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", @@ -10552,11 +10495,6 @@ "utila": "0.4.0" } }, - "pretty-format": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-3.8.0.tgz", - "integrity": "sha1-v77VbV6ad2ZF9LH/eqGjrE+jw4U=" - }, "prismjs": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.7.0.tgz", @@ -12567,11 +12505,6 @@ "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.0.4.tgz", "integrity": "sha512-to7oADIniaYwS3MhtCa/sQhrxidCCQiF/qp4/m5iN3ipf0Y7Xlri0f6eG29r08aL7JYl8n32AF3Q5GYBZ7K8vw==" }, - "standalone-react-addons-pure-render-mixin": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/standalone-react-addons-pure-render-mixin/-/standalone-react-addons-pure-render-mixin-0.1.1.tgz", - "integrity": "sha1-PHQJ9MecQN6axyxhbPZ5qZTzdVE=" - }, "stat-mode": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", diff --git a/package.json b/package.json index 0ea27bb..5b5e438 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,7 @@ "gatsby": "^1.9.73", "gatsby-link": "^1.6.22", "gatsby-plugin-google-analytics": "^1.0.10", - "gatsby-plugin-manifest": "^1.0.8", "gatsby-plugin-offline": "^1.0.10", - "gatsby-plugin-preact": "^1.0.12", "gatsby-plugin-react-helmet": "^1.0.8", "gatsby-plugin-sharp": "^1.6.9", "gatsby-plugin-typography": "^1.7.10", diff --git a/src/layouts/index.js b/src/layouts/index.js index fd4ae35..31ce92f 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -71,10 +71,4 @@ class Template extends React.Component { } } -Template.propTypes = { - children: React.PropTypes.func, - location: React.PropTypes.object, - route: React.PropTypes.object, -} - export default Template diff --git a/src/pages/index.js b/src/pages/index.js index ed1e104..92cbc85 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -13,7 +13,7 @@ class BlogIndex extends React.Component { return (