Skip to content

Commit d0af7cf

Browse files
committed
Fix blogs page
1 parent 9b2aa58 commit d0af7cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Marked/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,7 @@ function Parser(options) {
759759
this.tokens = []
760760
this.token = null
761761
this.options = options || marked.defaults
762-
this.options.pageContext.usedSlugs = this.options.pageContext.usedSlugs || {}
763-
this.usedSlugs = this.options.pageContext.usedSlugs
762+
this.usedSlugs = {}
764763
}
765764

766765
/**

src/pages/blog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BlogPost from "../components/BlogPost"
44
import BlogSidebar from "../components/BlogSidebar"
55
import { graphql } from "gatsby"
66

7-
export default ({ pageContext, data }) => {
7+
export default ({ pageContext, data }: any) => {
88
const posts = data.allMarkdownRemark.edges
99
.map((e: any) => e.node)
1010
.sort((a: any, b: any) => {
@@ -39,6 +39,7 @@ export default ({ pageContext, data }) => {
3939
guestBio={guestBio}
4040
rawMarkdownBody={rawMarkdownBody}
4141
isPermalink={false}
42+
pageContext={pageContext}
4243
/>
4344
)
4445
)}

0 commit comments

Comments
 (0)