🔵 🔵 🔵


Encounters

၊၊||၊|။

Slug ○꠹|encounter|ENC|20260708153631-00-•

Updated todo list

Excellent! Glad it’s working.

To exclude folders from search, you need to filter them out in the fillDocument() function. Folder pages typically have slugs ending with /.

Modify the loop in fillDocument() (around line 597):

for (const slug of Object.keys(contentData)) {
  
  // New line
  if (!slug.startsWith(allowedPath)) continue;
  
  // Skip folder pages (they end with /)
  if (slug.endsWith('/')) continue;
 
  const fileData = contentData[slug];
  if (!fileData) continue;
  idDataMap[id] = slug;
  for (const tag of fileData.tags || []) tagSet.add(tag);
  promises.push(
    index.addAsync(id, {
      id: id,
      slug: slug,
      title: fileData.title || "",
      content: fileData.content || "",
      tags: fileData.tags || [],
    }),
  );
  id++;
}

Add the line if (slug.endsWith('/')) continue; right after your path filter check. This will skip any folder index pages.

Then rebuild the plugin:

cd .quartz/plugins/search
npm run build
cd ../../..
npx quartz build

@Claude ○˒
(echo:: @ )

Link to original