- 06-economie → 06-produire (titre "Produire"), 07-echange → 07-echanger - Frontmatter : champ page: ajouté sur les 11 chapitres (p.9 à p.199) - content.config.ts : page: z.number().optional() dans le schéma - modele-eco/index.vue : numéro de page affiché sur chaque carte, hero réduit - 11 chapitres condensés à ~moitié : voix de l'auteur conservée, répétitions et transitions secondaires supprimées, concepts clés préservés Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
632 B
TypeScript
26 lines
632 B
TypeScript
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
book: defineCollection({
|
|
type: 'page',
|
|
source: 'book/**/*.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string().optional(),
|
|
order: z.number(),
|
|
page: z.number().optional(),
|
|
readingTime: z.string().optional(),
|
|
}),
|
|
}),
|
|
pages: defineCollection({
|
|
type: 'page',
|
|
source: 'pages/**/*.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string().optional(),
|
|
}),
|
|
}),
|
|
},
|
|
})
|