Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
chore(sitemap): filter out next specific 'pages'
Browse files Browse the repository at this point in the history
(cherry picked from commit 59311a12da2ff60795e2abd3bbfe1d9519008370)
  • Loading branch information
mcansh committed Jan 17, 2020
1 parent 958c695 commit d10c9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ${nodes}
</urlset>`;

function recursiveReadDirSync(dir, arr = [], rootDir = dir) {
const result = fs.readdirSync(dir);
const result = fs.readdirSync(dir).filter(file => !file.startsWith('_'));

result.forEach(part => {
const absolutePath = path.join(dir, part);
Expand Down

0 comments on commit d10c9a3

Please sign in to comment.