Add default styles and enable language plugin
Add stylesheet and enable language plugin with Norwegian support
This commit is contained in:
parent
bb38245218
commit
ca91a18cb7
6 changed files with 224 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue