Skip to content
Permalink
Browse files

docs: updated trailing slash filter code example

  • Loading branch information...
miteyema authored and NicoPennec committed Jun 18, 2019
1 parent cc98e6a commit 1a3a00a92554be370c12790180cdf8f31b094179
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
@@ -116,7 +116,10 @@ Examples:
{
sitemap: {
filter ({ routes }) {
return routes.map(route => route.url = `${route.url}/`)
return routes.map(route => {
route.url = `${route.url}/`
return route
})
}
}
}

0 comments on commit 1a3a00a

Please sign in to comment.
You can’t perform that action at this time.