feat: update hero visibility logic to show on all paginated home pages and prevent duplication in navbar

This commit is contained in:
interlope committed 2026-06-02 00:41:08 +02:00
1 parent 306a852c3e
commit e52422aa90
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -104,8 +104,8 @@
}
}
// The hero (and the relocated search) only appear on the blog front page.
$heroVisible = ($WHERE_AM_I === 'home' && Paginator::currentPage() == 1);
// The hero (and the relocated search) appear on every paginated home page.
$heroVisible = ($WHERE_AM_I === 'home');
// Reuse the values pre-computed before <body> (avoids calling $page->content() twice).
$isArticlePage = $blowditIsArticle;
$hasHeadings = $blowditHasHeadings;