feat: fill pages

This commit is contained in:
2025-11-11 19:12:21 +01:00
parent 3f828a754b
commit 9f1d4db0de
47 changed files with 2050 additions and 1274 deletions

View File

@@ -1,14 +1,17 @@
import { defineCollection, defineContentConfig } from '@nuxt/content';
import { z } from 'zod';
const commonSchema = z.object({});
const commonSchema = z.object({
title: z.string(),
description: z.string()
});
export default defineContentConfig({
collections: {
content_en: defineCollection({
type: 'page',
source: {
include: 'en/**',
include: 'en/**/*.md',
prefix: '',
},
schema: commonSchema,
@@ -16,18 +19,24 @@ export default defineContentConfig({
content_fr: defineCollection({
type: 'page',
source: {
include: 'fr/**',
include: 'fr/**/*.md',
prefix: '',
},
schema: commonSchema,
}),
content_lfn: defineCollection({
type: 'page',
content_data_en: defineCollection({
type: 'data',
source: {
include: 'lfn/**',
prefix: '',
include: 'en/**/*.json',
prefix: ''
},
}),
content_data_fr: defineCollection({
type: 'data',
source: {
include: 'fr/**/*.json',
prefix: ''
},
schema: commonSchema,
}),
},
});