Skip to content

Commit

Permalink
TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
hector2009 authored and abhir9 committed Oct 26, 2021
1 parent c9976ff commit 9a1476a
Show file tree
Hide file tree
Showing 10 changed files with 1,476 additions and 24 deletions.
3 changes: 3 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module.exports = {
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-autolink-headers`,
{ resolve: "gatsby-remark-copy-linked-files" },
{
resolve: `gatsby-remark-relative-images`,
Expand Down Expand Up @@ -295,6 +296,8 @@ module.exports = {
],
},
},
`gatsby-plugin-emotion`,
`gatsby-plugin-smoothscroll`,
],
mapping: {
"MarkdownRemark.frontmatter.author": `AuthorYaml`,
Expand Down
1 change: 1 addition & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions
if (node.internal.type === `MarkdownRemark`) {
const value = createFilePath({ node, getNode })

createNodeField({
name: `slug`,
node,
Expand Down
Loading

0 comments on commit 9a1476a

Please sign in to comment.