cache: don't index id pages
commit4fbcd4eb684d41651fc6523f791a90c485d8b66c
authorMatilde Park <matilde.park@urbit.org>
dateSun 24 Apr 2022, 16:13 (4 years ago)
parent30609e5
lib/cache.js+1−1
@@ -27,7 +27,7 @@ function buildSearchIndex(dir) {
2727
2828 const children = fs.readdirSync(dir, { withFileTypes: true });
2929 const pages = children.filter((f) => f.isFile() && f.name !== "_index.md");
30− const subdirs = children.filter((f) => f.isDirectory());
30+ const subdirs = children.filter((f) => f.isDirectory() && f.name !== "id");
3131
3232 index.push(
3333 ...pages.map((page) => {