docs/merise #20

Merged
GauthierWebDev merged 15 commits from docs/merise into main 2025-04-22 17:25:33 +00:00
Showing only changes of commit 874113db96 - Show all commits

View File

@ -22,9 +22,7 @@ export async function data(pageContext: PageContext) {
});
let cachePathname = urlParsed.pathname.replace(/\/$/, "").replace(/^\//, "");
if (cachePathname === "") {
cachePathname = "index";
}
if (cachePathname === "") cachePathname = "index";
const doc = docCache.get(cachePathname);
@ -41,7 +39,7 @@ export async function data(pageContext: PageContext) {
docs: docCache.orderByLastEdit({
limit: 2,
includedBasePaths: ["docs", "certifications"],
excludedFileNames: [cachePathname],
excludedFileNames: [cachePathname, "docs", "certifications"],
}),
};
}