Add default styles and enable language plugin

Add stylesheet and enable language plugin with Norwegian support
This commit is contained in:
Ruben 2025-11-27 21:29:35 +01:00
parent bb38245218
commit ca91a18cb7
6 changed files with 224 additions and 7 deletions

View file

@ -46,7 +46,10 @@ 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'])) {
return filterFilesByLanguage($data, $dirOrType, $ctx);
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 $data;