mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-15 06:58:50 +02:00
fix: use _pageUrl for homepage check (consistency with race condition fix)
This commit is contained in:
@@ -314,7 +314,7 @@
|
||||
</header>
|
||||
|
||||
<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 #}
|
||||
{{ content | safe }}
|
||||
{% elif withSidebar %}
|
||||
|
||||
Reference in New Issue
Block a user