GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing contentlayer.dev — Contentlayer makes content easy for developers Content made easy for developersContentlayer is a that validates and transforms your content into JSON data you can easily import into your application.
Lee Robinson Developer Relations at Vercel Just use JS/TSNo need to learn a new query language or complicated API docs to read. Import and manipulate your content as data directly with the JavaScript methods you know and love.
Built-in code confidenceAutomatically-generated type definitions and configurable data validations ensure that your data is properly structured across your application.
Build. Faster.Contentlayer + Next.js brings faster build times than Next.js alone or up against other frameworks, like Gatsby.
How Contentlayer works with...1 Configure your content sourceWhen working with local markdown or MDX files, you tell Contentlayer the expected shape of your data (document type definitions). 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
2 Your content is transformed into dataRun Contentlayer to process your content. Do this as part of the Next.js dev server, or using the Contentlayer CLI. This validates the content, then generates types definitions and outputs data objects ready to be imported as a ESM module. posts/
.contentlayer/generated/
3 Import data into your applicationImport the data just like you would any other JavaScript library. Use it to render pages, and pass down as props to the components on those pages. Keep the development bundle small with tree-shaking and improve the development experience by using the generated type definitions. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Give Contentlayer a try – right hereTry to edit some of the content below... ... the changes will update in real-time Contentlayer PlaygroundContentlayer runs as part of the Next.js dev server Frequently Asked QuestionsWe've heard a lot of questions about Contentlayer. These are the questions we get most often.
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |