simple-content-site
v3.0.0
Published
Nuxt layer for simple website with basic functions.
Readme
simple-content-site layer
A simple layer for setting up a simple website using Nuxt, Nuxt UI and Nuxt Content.
Installation
You can add the layer to an existing project, or create a fresh one following the methods below.
Create a new project
Minimal version
npx nuxi init -t gh:hareland/simple-content-site/.starters/minimalI18n version
npx nuxi init -t gh:hareland/simple-content-site/.starters/i18nAdd to existing nuxt app
This should be done inside a nuxt app.
npm i simple-content-siteor
pnpm add simple-content-siteExtend the layer
export default defineNuxtConfig({
extends: ['simple-content-site'],
})Running with the layer
pnpm devAdding pages
There are two types of pages, landing and page, in a future version they will be the same.
Landing page
This only covers the front page, either with i18n or without, see examples in the ./playground folder.
This is always the content/index.md or content/[lang]/index.md.
Supports full MDC syntax, and you can implement custom components.
Page
Can more or less do exactly the same as a landing page.
🛠️ Development
Local Development
To contribute to the CLI tool:
# Clone this repository...
# Install dependencies
pnpm install
# Run the dev server
pnpm run devPackage Structure
This is a monorepo containing:
/layer- Content Site Nuxt layer (simple-content-site)/playground/minimal- Minimal example project./playground/i18n- I18n example project
TODO's
- [X] Base structure and functionality
- [X] Support i18n
- [ ] Find a shared setup for landing and page
Contributions
Contributions are welcome.
📄 License
Published under the MIT license.
Heavily inspired by Docus
