From e5d699cffcdb522bcc149f5471558eda2881ccad Mon Sep 17 00:00:00 2001 From: Ricardo Date: Thu, 5 Feb 2026 13:54:51 +0100 Subject: [PATCH] fix: use Pagefind 1.x path and exclude non-HTML files from index Update Pagefind asset URLs from /_pagefind/ to /pagefind/ to stop the pre-1.0 compatibility mode that was writing the index twice. Also ignore CLAUDE.md and README.md in Eleventy to prevent them from being processed into HTML pages without an element. Co-Authored-By: Claude Opus 4.5 --- eleventy.config.js | 2 ++ search.njk | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index b06ddf6..2bee38d 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -26,6 +26,8 @@ export default function (eleventyConfig) { eleventyConfig.ignores.add("/app/data/site/**"); eleventyConfig.ignores.add("node_modules"); eleventyConfig.ignores.add("node_modules/**"); + eleventyConfig.ignores.add("CLAUDE.md"); + eleventyConfig.ignores.add("README.md"); // Ignore Pagefind output directory eleventyConfig.ignores.add("_pagefind"); diff --git a/search.njk b/search.njk index 76d752c..395385f 100644 --- a/search.njk +++ b/search.njk @@ -10,11 +10,11 @@ pagefindIgnore: true

Search across all posts, articles, notes, and pages.

- + - +