1
- module . exports = {
1
+ import { dirname } from 'path'
2
+ import { fileURLToPath } from 'url'
3
+ import remarkGfm from 'remark-gfm'
4
+
5
+ export default {
2
6
siteMetadata : {
3
7
description : 'UX Engineering Consultant' ,
4
8
siteUrl : 'https://johnkurkowski.com' ,
@@ -16,7 +20,7 @@ module.exports = {
16
20
{
17
21
allMdx(
18
22
filter: { fields: { date: { ne: null } } }
19
- sort: { fields: [fields___date], order : DESC }
23
+ sort: { fields: { date : DESC } }
20
24
) {
21
25
edges {
22
26
node {
@@ -29,7 +33,6 @@ module.exports = {
29
33
description
30
34
title
31
35
}
32
- html
33
36
id
34
37
}
35
38
}
@@ -43,10 +46,11 @@ module.exports = {
43
46
date : edge . node . fields . date ,
44
47
url : site . siteMetadata . siteUrl + edge . node . fields . slug ,
45
48
guid : site . siteMetadata . siteUrl + edge . node . fields . slug ,
46
- custom_elements : [ { 'content:encoded' : edge . node . html } ]
49
+ custom_elements : [ { 'content:encoded' : edge . node . excerpt } ]
47
50
} )
48
51
} )
49
- }
52
+ } ,
53
+ title : 'John Kurkowski'
50
54
}
51
55
]
52
56
}
@@ -68,7 +72,7 @@ module.exports = {
68
72
resolve : `gatsby-source-filesystem` ,
69
73
options : {
70
74
name : `pages` ,
71
- path : `${ __dirname } /src/content/`
75
+ path : `${ dirname ( fileURLToPath ( import . meta . url ) ) } /src/content/`
72
76
}
73
77
} ,
74
78
{
@@ -77,13 +81,6 @@ module.exports = {
77
81
extensions : [ `.md` , `.mdx` ] ,
78
82
gatsbyRemarkPlugins : [
79
83
`gatsby-plugin-catch-links` ,
80
- {
81
- resolve : `gatsby-remark-autolink-headers` ,
82
- options : {
83
- enableCustomId : true ,
84
- isIconAfterHeader : true
85
- }
86
- } ,
87
84
{
88
85
resolve : `gatsby-remark-copy-linked-files` ,
89
86
options : {
@@ -93,7 +90,9 @@ module.exports = {
93
90
`gatsby-remark-prismjs` ,
94
91
`gatsby-remark-smartypants`
95
92
] ,
96
- plugins : [ `gatsby-remark-autolink-headers` ]
93
+ mdxOptions : {
94
+ remarkPlugins : [ remarkGfm ]
95
+ }
97
96
}
98
97
}
99
98
]
0 commit comments