Skip to content

Commit

Permalink
Do not index HTML comments (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
solimant authored Feb 21, 2024
1 parent 4a88596 commit 38d596e
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 38d596e

Please sign in to comment.