Create a simple markdown blog with Nuxt.js
Read my blog post here
- Create a new nuxtjs app:
yarn create nuxt-app nuxt-markdown-blog
- Add frontmatter-markdown-loader Webpack Loader
- Add markdown content as blog posts
- Add dynamic view using
slug
params - Generate ready to deploy static web site
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn run dev
# build for production and launch server
$ yarn run build
$ yarn start
# generate static project
$ yarn run generate
For detailed explanation on how things work, checkout :