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

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "content"]
path = content
url = https://gitea.gbanyan.net/gbanyan/personal-blog.git

1
content Submodule

Submodule content added at 8f61bdf0ca

View File

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