fix(navbar): eliminate hardcoded names and make navbar and categories 100% dynamic JSON-driven
This commit is contained in:
@@ -167,7 +167,7 @@ export function getAppById(id: string): AppItem | null {
|
||||
}
|
||||
|
||||
export function getAllCategories(): CategoryItem[] {
|
||||
if (categoriesCache.size > 0) return Array.from(categoriesCache.values());
|
||||
categoriesCache.clear();
|
||||
|
||||
const dir = path.join(CONTENT_DIR, 'collections', 'categories');
|
||||
if (fs.existsSync(dir)) {
|
||||
|
||||
Reference in New Issue
Block a user