this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

♻️ Refactor a lil chunk o code

+2 -3
+2 -3
src/pages/collections/[collection].astro
··· 35 35 const conjunctions = clause.split(" and "); 36 36 return conjunctions.every((term) => { 37 37 if (!term.startsWith("#")) { 38 - return [work.id, ...(work.metadata.aliases ?? [])].some( 39 - picomatch(term), 40 - ); 38 + const aliases = work.metadata.aliases ?? []; 39 + return [work.id, ...aliases].some(picomatch(term)); 41 40 } 42 41 return work.metadata.tags?.some((t) => t.id === term.replace(/^#/, "")); 43 42 });