Add content submodule and point Contentlayer to it
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "content"]
|
||||||
|
path = content
|
||||||
|
url = https://gitea.gbanyan.net/gbanyan/personal-blog.git
|
||||||
1
content
Submodule
1
content
Submodule
Submodule content added at 8f61bdf0ca
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user