$page->isErrorPage()

Checks if the page is the error page

  • return (boolean)

Example

A custom css file for the error page

<?php if($page->isErrorPage()): ?>
<?= css('assets/css/error.css') ?>
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…