commit
7cae968420
6 changed files with 1042 additions and 666 deletions
|
|
@ -3,8 +3,8 @@ const Promise = require('bluebird')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { createFilePath } = require('gatsby-source-filesystem')
|
const { createFilePath } = require('gatsby-source-filesystem')
|
||||||
|
|
||||||
exports.createPages = ({ graphql, boundActionCreators }) => {
|
exports.createPages = ({ graphql, actions }) => {
|
||||||
const { createPage } = boundActionCreators
|
const { createPage } = actions
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const blogPost = path.resolve('./src/templates/blog-post.js')
|
const blogPost = path.resolve('./src/templates/blog-post.js')
|
||||||
|
|
@ -54,8 +54,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
|
exports.onCreateNode = ({ node, actions, getNode }) => {
|
||||||
const { createNodeField } = boundActionCreators
|
const { createNodeField } = actions
|
||||||
|
|
||||||
if (node.internal.type === `MarkdownRemark`) {
|
if (node.internal.type === `MarkdownRemark`) {
|
||||||
const value = createFilePath({ node, getNode })
|
const value = createFilePath({ node, getNode })
|
||||||
|
|
|
||||||
1692
package-lock.json
generated
1692
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -8,7 +8,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gatsby": "next",
|
"gatsby": "next",
|
||||||
"gatsby-link": "next",
|
|
||||||
"gatsby-plugin-feed": "next",
|
"gatsby-plugin-feed": "next",
|
||||||
"gatsby-plugin-google-analytics": "next",
|
"gatsby-plugin-google-analytics": "next",
|
||||||
"gatsby-plugin-offline": "next",
|
"gatsby-plugin-offline": "next",
|
||||||
|
|
@ -24,6 +23,7 @@
|
||||||
"gatsby-transformer-remark": "next",
|
"gatsby-transformer-remark": "next",
|
||||||
"gatsby-transformer-sharp": "next",
|
"gatsby-transformer-sharp": "next",
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
|
"prismjs": "^1.15.0",
|
||||||
"react": "^16.3.2",
|
"react": "^16.3.2",
|
||||||
"react-dom": "^16.3.2",
|
"react-dom": "^16.3.2",
|
||||||
"react-helmet": "^5.2.0",
|
"react-helmet": "^5.2.0",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Link from 'gatsby-link'
|
import { Link } from 'gatsby'
|
||||||
|
|
||||||
import { rhythm, scale } from '../utils/typography'
|
import { rhythm, scale } from '../utils/typography'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Link from 'gatsby-link'
|
import { Link } from 'gatsby'
|
||||||
import get from 'lodash/get'
|
import get from 'lodash/get'
|
||||||
import Helmet from 'react-helmet'
|
import Helmet from 'react-helmet'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Helmet from 'react-helmet'
|
import Helmet from 'react-helmet'
|
||||||
import Link from 'gatsby-link'
|
import { Link } from 'gatsby'
|
||||||
import get from 'lodash/get'
|
import get from 'lodash/get'
|
||||||
|
|
||||||
import Bio from '../components/Bio'
|
import Bio from '../components/Bio'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue