1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-25 00:02:28 +02:00

V2.17.1 fix last modified for non-published pages

This commit is contained in:
trendschau
2025-05-18 13:50:24 +02:00
parent 3fb9fc2e07
commit 5902f56e84
2 changed files with 8 additions and 2 deletions

2
cache/timer.yaml vendored
View File

@@ -1 +1 @@
licenseupdate: 1747561267
licenseupdate: 1747568554

View File

@@ -21,7 +21,13 @@ class Meta
{
$metadata = $this->storage->getYaml('contentFolder', '', $item->pathWithoutType . '.yaml');
$metadata['meta']['modified'] = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.md');
$modified = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.md');
if(!$modified)
{
$modified = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.txt');
}
$metadata['meta']['modified'] = $modified;
return $metadata;
}