File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 [
177177see 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
You can’t perform that action at this time.
0 commit comments