Reference

Guide

$pagination->isFirstPage()

Checks if the current page is the first page

$pagination->isFirstPage(): bool

Return type

bool

Example

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

if($pagination->isFirstPage()) {
  echo 'This is the first page';
}

Source code

kirby/src/Toolkit/Pagination.php#L323