Skip to content

Commit 55ea3a4

Browse files
committed
Update readme for sitemethods instead of collection and document return values.
1 parent fa5dcd9 commit 55ea3a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ return [
285285
A few helpers are available for manipulating pages :
286286

287287
### Page Method
288-
If you'd like to know if a page is indexed in the sitemap, you can use `$page->isIndexible()`.
288+
If you'd like to know if a page is indexed in the sitemap, you can use `$page->isIndexible()` (returns a `bool`).
289289

290-
### Pages Collection
291-
A collection of all indexed pages is available in : `$kirby->collection('indexedPages')`.
290+
### Site Method
291+
To get all indexed pages according to your settings, you can use : `$site->indexedPages()` (returns a `Kirby\Cms\Collection` of pages).
292292

293293
## Credits
294294

0 commit comments

Comments
 (0)