Build Git-based static blog with Nuxt 3!
Based on Nuxt Content (document driven) and Nuxt Image
- Install Node.js
- Fork this repository
npm install
You should put Markdowns and images under docs/
directory.
content
directory is generated automatically as intermediate files.
This boilerplate sets docs
directory to the public directory.
So static files like robots.txt
and favicon.ico
should be placed under docs
directory.
I recommend to use the static site hosting service like Netlify or Cloudflare Pages.
Build Command: npm run generate
Public Path: .output/public
npm run build
to buildPORT=3000 node .output/server/index.mjs
to run server
Development: npm run dev
Static Site Preview: npm run generate && npm run preview
Server Preview: npm run build && npm run preview
Do not create layouts/index.vue
, for some reason Nuxt has a problem with it.