category && tag single static path modifed

This commit is contained in:
Al Murad Uzzaman
2024-05-18 09:49:56 +06:00
parent 6017d83cdb
commit f88e524bb0
5 changed files with 44 additions and 12 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ export const getTaxonomy = async (collection: any, name: string) => {
actualCollection as keyof ContentEntryMap,
({ id }: any) => {
return id.startsWith("blog") && !id.endsWith("-index.md");
},
}
);
const taxonomyPages = singlePages.map((page: any) => page.data[name]);
let taxonomies: string[] = [];
@@ -37,7 +37,7 @@ export const getAllTaxonomy = async (collection: any, name: string) => {
actualCollection as keyof ContentEntryMap,
({ id }: any) => {
return id.startsWith("blog") && !id.endsWith("-index.md");
},
}
);
const taxonomyPages = singlePages.map((page: any) => page.data[name]);
let taxonomies: string[] = [];