Skip to content

Kirby 3.6.6

$site->modified()

Gets the last modification date of all pages in the content folder.

$site->modified(string $format = null, string $handler = null): int|string

Parameters

Name Type Default
$format string null
$handler string null

Return type

int|string

Parent class

Kirby\Cms\Site

Example

Last update: <?= $site->modified('d/m/Y H:i') ?>

$site->modified() might take (very) long for websites with many pages because it runs through all pages in the content folder. Use with caution.