fix: use _pageUrl for homepage check (consistency with race condition fix)

This commit is contained in:
Ricardo
2026-02-24 20:25:46 +01:00
parent 42a5c67896
commit ee068c7e5c
+1 -1
View File
@@ -314,7 +314,7 @@
</header> </header>
<main class="container py-8" data-pagefind-body> <main class="container py-8" data-pagefind-body>
{% if withSidebar and page.url == "/" and homepageConfig and homepageConfig.sections %} {% if withSidebar and _pageUrl == "/" and homepageConfig and homepageConfig.sections %}
{# Homepage: builder controls its own layout and sidebar #} {# Homepage: builder controls its own layout and sidebar #}
{{ content | safe }} {{ content | safe }}
{% elif withSidebar %} {% elif withSidebar %}