Skip to content

Commit

Permalink
fix: section pages navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Nov 21, 2023
1 parent ee97492 commit e356512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function generate(): void
// sorts pages
$pages = self::sortSubPages($page, $pages);
// adds navigation links (excludes taxonomy pages)
$sortby = $page->getVariable('sortby')['variable'] ?? (string) $page->getVariable('sortby') ?? 'date';
$sortby = $page->getVariable('sortby')['variable'] ?? $page->getVariable('sortby') ?? 'date';
if (!\in_array($page->getId(), array_keys((array) $this->config->get('taxonomies')))) {
$this->addNavigationLinks($pages, $sortby, $page->getVariable('circular'));
}
Expand Down

0 comments on commit e356512

Please sign in to comment.