Add content submodule and point Contentlayer to it

This commit is contained in:
2025-11-17 15:46:48 +08:00
parent 0c64279e34
commit 34e64b3428
3 changed files with 6 additions and 2 deletions

View File

@@ -74,8 +74,8 @@ export const Page = defineDocumentType(() => ({
}));
export default makeSource({
// Use the existing blog repo as content source
contentDirPath: '../Blog 文章原稿',
// Use git submodule `content` (personal-blog) as content source
contentDirPath: 'content',
documentTypes: [Post, Page],
contentDirExclude: ['Arc 瀏覽器使用心得.md'],
fieldOptions: {