Skip to content

Commit

Permalink
feat: exclude 404.html page by default ekoeryanto#35
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush P Gupta <[email protected]>
  • Loading branch information
apgapg committed May 22, 2022
1 parent 175ba89 commit f306a53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ module.exports = (options, context) => {

return {
generated () {
// to exclude 404 page explicitly by default
exclude.push('/404.html')

if (!hostname) {
return log(
'Not generating sitemap because required "hostname" option doesn\'t exist',
Expand Down

0 comments on commit f306a53

Please sign in to comment.