Skip to content

Commit

Permalink
Do not index HTML comments
Browse files Browse the repository at this point in the history
  • Loading branch information
solimant committed Feb 21, 2024
1 parent a30f4b9 commit 8306335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ const createIndex = async (nodes, pages) => {
const doc = {
id: slug,
title: title,
body: node.internal.content,
body: node.internal.content?.replace(/<!--.*?-->/gs, ''),
path: slug,
type: type,
group: `${process.env.BUSINESS_GROUP}`,
Expand Down

0 comments on commit 8306335

Please sign in to comment.