From 39903a2b85af4eea52d44272832ff513ba0ebe3d Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 13 Dec 2024 15:01:58 +0100 Subject: [PATCH] Update readme.md --- readme.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 4466b9fc..25ccacd0 100644 --- a/readme.md +++ b/readme.md @@ -11,13 +11,13 @@ Alinea is a modern content management system. ## Get started -Install alinea in your project directory +Install Alinea in your project directory ```sh npm install alinea ``` -Initialize alinea's config file +Initialize Alinea's config file ```sh npx alinea init --next @@ -33,20 +33,21 @@ npx alinea dev ## Configure -Configure alinea in `cms.tsx` +Configure Alinea in `cms.tsx` ```tsx import {Config, Field} from 'alinea' -const Blog = Config.document('Blog', { - contains: ['BlogPost'] -}) const BlogPost = Config.document('Blog post', { fields: { title: Field.text('Blog entry title'), body: Field.richText('Body text') } }) + +const Blog = Config.document('Blog', { + contains: [BlogPost] +}) ``` [Type options and fields →](https://alinea.sh/docs/configuration)