0.2.0 add footer, flag image and date updated

This commit is contained in:
Yusur 2026-02-13 14:14:52 +01:00
parent 3a74901fb8
commit 7b41a1d395
6 changed files with 68 additions and 6 deletions

View file

@ -9,9 +9,10 @@ define('PAGES_PATH', dirname(__DIR__) . '/pages');
class PageLoader {
protected string $name, $title;
protected mixed $error;
protected $updatedAt;
protected string $name;
protected string $title = '';
protected mixed $error = false;
protected mixed $updatedAt = false;
protected string $raw_content;
public function __construct() {
@ -129,4 +130,8 @@ class PageLoader {
public function isIndex () {
return $this->name === 'index';
}
public function getUpdatedAt () {
return $this->updatedAt;
}
}