Skip to content

Commit df504f5

Browse files
committed
📝 fixed typo in readme
1 parent 07aab33 commit df504f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ return [
154154
// return site()->index()->listed()->limit(50000)->sitemap();
155155

156156
// using a closure allows for better performance on a cache hit
157-
sitemap(fn() => site()->index()->listed()->limit(50000));
157+
return sitemap(fn() => site()->index()->listed()->limit(50000));
158158
}
159159
],
160160
// (optional) Add stylesheet for human readable version of the xml file.
@@ -177,9 +177,10 @@ return [
177177
see the official Kirby documentation: [Filtering compendium](https://getkirby.com/docs/cookbook/content/filtering)
178178

179179
```php
180-
$feed = site()->index()->listed()
180+
return sitemap(fn() => site()->index()->listed()
181181
->filterBy('template', '!=', 'excludeme')
182-
->limit(50000)->sitemap($options);
182+
->limit(50000)
183+
);
183184
```
184185

185186
## Settings

0 commit comments

Comments
 (0)