From 2a8385f3aa1c8c2fa1a6de7b99cdf1ae62d8ca57 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 8 Oct 2025 01:28:46 +0800 Subject: [PATCH] fix(theme): incorrect collection auto complete --- theme/src/node/collections/complete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/src/node/collections/complete.ts b/theme/src/node/collections/complete.ts index 865aa922..54185b10 100644 --- a/theme/src/node/collections/complete.ts +++ b/theme/src/node/collections/complete.ts @@ -30,6 +30,6 @@ function completeCollectionItems(collection: ThemeCollectionItem): void { collection.categories && (collection.categoriesLink ||= `${collection.linkPrefix}categories/`) } else { - collection.linkPrefix = normalizePath(`/${collection.dir}/`) + collection.linkPrefix ||= normalizePath(`/${collection.dir}/`) } }