Add article definition to suppress the '[ERROR] The build was canceled.' log.
This commit is contained in:
parent
b87816c5eb
commit
4cdce770d8
5
.gitignore
vendored
5
.gitignore
vendored
@ -23,5 +23,6 @@ pnpm-debug.log*
|
|||||||
# jetbrains setting folder
|
# jetbrains setting folder
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# test articles
|
# ignore test articles except for article definitions
|
||||||
src/content/
|
src/content/*
|
||||||
|
!src/content/config.ts
|
||||||
|
@ -21,4 +21,4 @@ fi
|
|||||||
|
|
||||||
mv ${ld_site_dist_target} "${ld_site_dist_target}-old"
|
mv ${ld_site_dist_target} "${ld_site_dist_target}-old"
|
||||||
mv dist ${ld_site_dist_target}
|
mv dist ${ld_site_dist_target}
|
||||||
rm -rf "${ld_site_dist_target}-old" ${original_article_destination}
|
rm -rf "${ld_site_dist_target}-old"
|
||||||
|
35
src/content/config.ts
Normal file
35
src/content/config.ts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { z, defineCollection } from 'astro:content';
|
||||||
|
|
||||||
|
const blogCollection = defineCollection({
|
||||||
|
type: 'content',
|
||||||
|
schema: z.object({
|
||||||
|
title: z.string(),
|
||||||
|
description: z.string(),
|
||||||
|
category: z.string(),
|
||||||
|
lastUpdate: z.string()
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
const noteCollection = defineCollection({
|
||||||
|
type: 'content',
|
||||||
|
schema: z.object({
|
||||||
|
title: z.string(),
|
||||||
|
description: z.string(),
|
||||||
|
category: z.string(),
|
||||||
|
lastUpdate: z.string()
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
const translationCollection = defineCollection({
|
||||||
|
type: 'content',
|
||||||
|
schema: z.object({
|
||||||
|
title: z.string(),
|
||||||
|
description: z.string(),
|
||||||
|
category: z.string(),
|
||||||
|
lastUpdate: z.string()
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const collections = {
|
||||||
|
'blog': blogCollection,
|
||||||
|
'note': noteCollection,
|
||||||
|
'translation': translationCollection,
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user