From 719ce101b721bfbd072526298be89cbe93ecd063 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 18 Feb 2026 09:18:52 +0100 Subject: [PATCH] debug: add OG filter debug logging --- eleventy.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index 6a58139..d0f4de8 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -343,7 +343,12 @@ export default function (eleventyConfig) { // Check if a generated OG image exists for this page slug eleventyConfig.addFilter("hasOgImage", (fileSlug) => { if (!fileSlug) return false; - return existsSync(resolve(__dirname, ".cache", "og", `${fileSlug}.png`)); + const ogPath = resolve(__dirname, ".cache", "og", `${fileSlug}.png`); + const exists = existsSync(ogPath); + if (!exists && fileSlug.includes("quand-un-oui")) { + console.log(`[og-debug] fileSlug=${fileSlug}, path=${ogPath}, exists=${exists}`); + } + return exists; }); // Current timestamp filter (for client-side JS buildtime)