File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -759,8 +759,7 @@ function Parser(options) {
759
759
this . tokens = [ ]
760
760
this . token = null
761
761
this . options = options || marked . defaults
762
- this . options . pageContext . usedSlugs = this . options . pageContext . usedSlugs || { }
763
- this . usedSlugs = this . options . pageContext . usedSlugs
762
+ this . usedSlugs = { }
764
763
}
765
764
766
765
/**
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import BlogPost from "../components/BlogPost"
4
4
import BlogSidebar from "../components/BlogSidebar"
5
5
import { graphql } from "gatsby"
6
6
7
- export default ( { pageContext, data } ) => {
7
+ export default ( { pageContext, data } : any ) => {
8
8
const posts = data . allMarkdownRemark . edges
9
9
. map ( ( e : any ) => e . node )
10
10
. sort ( ( a : any , b : any ) => {
@@ -39,6 +39,7 @@ export default ({ pageContext, data }) => {
39
39
guestBio = { guestBio }
40
40
rawMarkdownBody = { rawMarkdownBody }
41
41
isPermalink = { false }
42
+ pageContext = { pageContext }
42
43
/>
43
44
)
44
45
) }
You can’t perform that action at this time.
0 commit comments