Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A blog example/boilerplate made with Nuxt Content
Nuxt Content Example is a minimal blog boilerplate for Nuxt.js that demonstrates how to build a static website with the Nuxt Content module and the Nuxt Components library. The project is created and maintained by GitHub user ninest, released under the MIT license, and ships with a live demo hosted on Surge.sh.
Nuxt Content Example is a working example/boilerplate that shows how Nuxt Content reads local markdown files and turns each one into a route. It takes markdown files placed in the content/ directory as input and produces a static blog with an index page, an about page, a posts listing page, and individual post pages as output. The entire site is generated by Nuxt.js, using the Nuxt Content module for file-based content and the Nuxt Components library for automatic component imports.
pages/_slug.vue with asyncData and $content.npm run generate outputs a fully static dist/ directory ready for any host.asyncData fetches documents, and how components are used.npm run dev, and have a blog running in minutes.privacy-policy.md into content/ with frontmatter and it appears at the matching URL on localhost:3000.surge dist, and choose a custom *.surge.sh domain, exactly as the demo does.After cloning the repository, run npm run dev to start the development server on localhost:3000. Each markdown file in the content/ folder is picked up by the Nuxt Content module and mapped to a route using the dynamic page component pages/_slug.vue. When you're ready to publish, run npm run generate to produce a static site in dist/, then deploy that folder to any static host.
Create a markdown file in the content/ folder with frontmatter for title and description, then save it. The new page will be available at the path matching the filename, for example privacy-policy.md becomes /privacy-policy.
Yes, the project is licensed under the MIT license, so you can use it in commercial and personal projects.
Not currently. The repository lists "Include components in markdown" as an unchecked feature, so native Vue components inside markdown files are not yet supported.
The live demo is hosted at nuxt-content-example.surge.sh.
Run npm run generate to build a static site in the dist/ directory, then upload that folder to any static host. For Surge.sh, install the global CLI with npm install --global surge and run surge dist.
