Merge pull request #105 from mottox2/v2-beta

Update for v2
This commit is contained in:
Michal Piechowiak 2018-06-20 20:04:29 +02:00 committed by GitHub
commit 7cae968420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1042 additions and 666 deletions

View file

@ -3,8 +3,8 @@ const Promise = require('bluebird')
const path = require('path')
const { createFilePath } = require('gatsby-source-filesystem')
exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators
exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions
return new Promise((resolve, reject) => {
const blogPost = path.resolve('./src/templates/blog-post.js')
@ -54,8 +54,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
})
}
exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
const { createNodeField } = boundActionCreators
exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions
if (node.internal.type === `MarkdownRemark`) {
const value = createFilePath({ node, getNode })

1692
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,6 @@
},
"dependencies": {
"gatsby": "next",
"gatsby-link": "next",
"gatsby-plugin-feed": "next",
"gatsby-plugin-google-analytics": "next",
"gatsby-plugin-offline": "next",
@ -24,6 +23,7 @@
"gatsby-transformer-remark": "next",
"gatsby-transformer-sharp": "next",
"lodash": "^4.17.5",
"prismjs": "^1.15.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-helmet": "^5.2.0",

View file

@ -1,5 +1,5 @@
import React from 'react'
import Link from 'gatsby-link'
import { Link } from 'gatsby'
import { rhythm, scale } from '../utils/typography'

View file

@ -1,5 +1,5 @@
import React from 'react'
import Link from 'gatsby-link'
import { Link } from 'gatsby'
import get from 'lodash/get'
import Helmet from 'react-helmet'

View file

@ -1,6 +1,6 @@
import React from 'react'
import Helmet from 'react-helmet'
import Link from 'gatsby-link'
import { Link } from 'gatsby'
import get from 'lodash/get'
import Bio from '../components/Bio'