fix: pass collections context to homepage Recent Posts section for correct rendering

This commit is contained in:
svemagie
2026-03-12 11:45:34 +01:00
parent 2ded64b408
commit d03ec5bd86
+2 -2
View File
@@ -1,8 +1,8 @@
{# Homepage Section Dispatcher — maps section.type to the right partial #} {# Homepage Section Dispatcher — maps section.type to the right partial #}
{% if section.type == "featured-posts" %} {% if section.type == "featured-posts" %}
{% include "components/sections/featured-posts.njk" %} {% include "components/sections/featured-posts.njk" with { collections: collections } %}
{% elif section.type == "recent-posts" %} {% elif section.type == "recent-posts" %}
{% include "components/sections/recent-posts.njk" %} {% include "components/sections/recent-posts.njk" with { collections: collections } %}
{% elif section.type == "custom-html" %} {% elif section.type == "custom-html" %}
{% include "components/sections/custom-html.njk" %} {% include "components/sections/custom-html.njk" %}
{% elif section.type == "cv-experience" %} {% elif section.type == "cv-experience" %}