Add social image URL and metadata to template context

This commit is contained in:
Ruben 2026-03-17 11:23:07 +01:00
parent 0e63ed1444
commit 611bf75576
3 changed files with 21 additions and 11 deletions

View file

@ -46,10 +46,7 @@ Hooks::add(Hook::PROCESS_CONTENT, function(mixed $data, string $dirOrType, strin
// Filter content files by language variant
if (is_array($data) && !empty($data) && isset($data[0]['path'])) {
error_log("filterFilesByLanguage called with " . count($data) . " files, current lang: $currentLang");
$filtered = filterFilesByLanguage($data, $dirOrType, $ctx);
error_log("Filtered to " . count($filtered) . " files");
return $filtered;
return filterFilesByLanguage($data, $dirOrType, $ctx);
}
return $data;