@@ -2,7 +2,6 @@ const fs = require("fs");
22const path = require("path");
33const matter = require("gray-matter");
44const toml = require("@iarna/toml");
5−const { data } = require("remark");
65
76const options = {
87 engines: {
@@ -40,7 +39,8 @@ function buildSearchIndex(dir) {
4039 title: pageData.title,
4140 base: page.name,
4241 slug: path.join(
43− dir.substr(dir.indexOf("content/") + 7),
42+ dir.substr(dir.indexOf("content") + 7),
43+ "/",
4444 page.name.replace(/.md$/, "")
4545 ),
4646 content: pageData.description || "",