From 829395a2cddb59c10f29f61fa415bf961b9ed516 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 2 Feb 2026 12:30:04 +0100 Subject: [PATCH] fix: use fileSlug instead of url to avoid circular dependency The eleventyComputed permalink cannot reference page.url as it creates a circular dependency (url depends on permalink). Using fileSlug instead. Co-Authored-By: Claude Opus 4.5 --- about.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about.njk b/about.njk index f76b6c8..7d708c8 100644 --- a/about.njk +++ b/about.njk @@ -2,7 +2,7 @@ layout: layouts/base.njk title: About eleventyComputed: - permalink: "{% set aboutPageExists = false %}{% for page in collections.pages %}{% if page.url == '/about/' %}{% set aboutPageExists = true %}{% endif %}{% endfor %}{% if aboutPageExists %}false{% else %}/about/{% endif %}" + permalink: "{% set aboutPageExists = false %}{% for page in collections.pages %}{% if page.fileSlug == 'about' %}{% set aboutPageExists = true %}{% endif %}{% endfor %}{% if aboutPageExists %}false{% else %}/about/{% endif %}" ---