Live demo: https://saabbir.github.io/
- Nuxt 3 (Vue 3) with static preset for GitHub Pages
- @nuxt/content v2 – file-based content (articles, snippets, work) from
content/ - Prism.js – code highlighting in markdown (custom
ProseCodecomponent, theme: prism-material-oceanic) - SCSS – global styles; content typography scoped under
.nuxt-content
- Node.js: v18 or later (v20 LTS recommended)
- npm: v9 or later
node -v # should be 18+
npm -v-
Clone the repository:
git clone https://github.com/Saabbir/saabbir.github.io.git cd saabbir.github.io -
Install dependencies:
npm install
-
Run the development server:
npm run dev
The site will be available at http://localhost:3000
-
Generate static site (for GitHub Pages):
npm run generate
This copies
assets/imagestopublic/imagesand outputs the site to.output/public. -
Preview the generated site:
npm run preview
-
Deploy to GitHub Pages:
npm run deploy
Builds the static site and pushes
.output/publicto thegh-pagesbranch.
-
Dependency or build errors?
Deletenode_modulesandpackage-lock.json, then runnpm installagain. -
Images missing on generated site?
Runnpm run copy:assetsonce to copyassets/imagesintopublic/images, or runnpm run generate(it runs the copy step automatically).
- Nuxt 3 Documentation
- Nuxt Content v2
- PROJECT_GUIDE.md – project structure and content workflow
- MIGRATION.md – Nuxt 2 → 3 migration notes
