fix: use _pageUrl for homepage check (consistency with race condition fix)
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user