Skip to content

Commit bba5916

Browse files
authored
Merge pull request #8 from codeanit-website/bug#7-lunr_field_missing
Fix typo issue
2 parents 5aa0c9f + 33bd379 commit bba5916

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
content: node => node.rawBody,
5050
date: node => node.frontmatter.date,
5151
slug: node => `/posts/${node.frontmatter.slug}`,
52-
keywords: node => node.formatter.keywords,
52+
keywords: node => node.frontmatter.keywords,
5353
},
5454
},
5555
filename: 'search_index.json',

gatsby-node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ exports.createPages = ({ graphql, actions }) => {
1515
id
1616
tableOfContents
1717
timeToRead
18-
frontmatter {
18+
frontmatter {
1919
slug
2020
title
2121
subtitle
2222
date
2323
type
24+
keywords
2425
cover {
2526
childImageSharp {
2627
fluid(

0 commit comments

Comments
 (0)