Nuxt Content Lite Personal Project
Nuxt Content Lite is a lightweight markdown driven content engine for Nuxt applications, inspired by Nuxt Content. It provides a simpler alternative for smaller sites that require more than static content but don't need a full CMS.
Key features include markdown-based content, frontmatter support, and integration with Nuxt layers and Vue components. The primary components are ContentLiteDoc
for rendering markdown content and useContentLite
composable for content management.
Installation
yarn add nuxt-content-lite
Configuration
To use Nuxt Content Lite, add it to the modules
section of your nuxt.config.ts
:
export default defineNuxtConfig({
modules: [
'nuxt-content-lite'
]
})
Usage
Utilize the ContentLiteDoc
component to render markdown content within your pages or layouts. The useContentLite
composable can be used to manage and fetch content.