summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marek Brzezinski <marek.j.brzezinski@gmail.com> 2023-08-07 19:52:13 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-07 12:52:13 -0500
commit6a27e932d6c498eb29bf6568be330713526bf66f (patch)
treed299a044b5c309ae57ec95bb2dc9a987b1f8c0fd
parent9d0070095e90d4cbc31f5f9a1c6dd48a0dbeb379 (diff)
downloadastro-6a27e932d6c498eb29bf6568be330713526bf66f.tar.gz
astro-6a27e932d6c498eb29bf6568be330713526bf66f.tar.zst
astro-6a27e932d6c498eb29bf6568be330713526bf66f.zip
Added slashes at the end of the filter option in the sitemap docs (#7915)
I trend to implement the sitemap and I found out that filter option works only when the URL has slashes at the end. I changed the examples. Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
-rw-r--r--packages/integrations/sitemap/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/integrations/sitemap/README.md b/packages/integrations/sitemap/README.md
index 346ec54c9..ecf59a12d 100644
--- a/packages/integrations/sitemap/README.md
+++ b/packages/integrations/sitemap/README.md
@@ -148,7 +148,7 @@ All pages are included in your sitemap by default. By adding a custom `filter` f
// astro.config.mjs
// ...
sitemap({
- filter: (page) => page !== 'https://stargazers.club/secret-vip-lounge',
+ filter: (page) => page !== 'https://stargazers.club/secret-vip-lounge/',
});
```
@@ -161,10 +161,10 @@ To filter multiple pages, add arguments with target URLs.
// ...
sitemap({
filter: (page) =>
- page !== 'https://stargazers.club/secret-vip-lounge-1' &&
- page !== 'https://stargazers.club/secret-vip-lounge-2' &&
- page !== 'https://stargazers.club/secret-vip-lounge-3' &&
- page !== 'https://stargazers.club/secret-vip-lounge-4',
+ page !== 'https://stargazers.club/secret-vip-lounge-1/' &&
+ page !== 'https://stargazers.club/secret-vip-lounge-2/' &&
+ page !== 'https://stargazers.club/secret-vip-lounge-3/' &&
+ page !== 'https://stargazers.club/secret-vip-lounge-4/',
});
```