$site->modified()
Gets the last modification date of all pages in the content folder.
$site->modified(string|null $format = null, string|null $handler = null): string|int
Parameters
Name | Type | Default |
---|---|---|
$format | string ornull |
null
|
$handler | string ornull |
null
|
Return types
string
orint
This method modifies the existing $site
object it is applied to and returns it again.
Parent class
Examples
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.