Personal blog built with Hexo and deployed to GitHub Pages via the gh-pages branch.
- Node.js (v14+)
- npm
npm installStart the local dev server with live reload:
npm startThe site is available at http://localhost:4000.
npm run new -- "My Post Title"This generates source/_posts/my-post-title.md. Edit that file to add your content.
Post front matter example:
---
title: My Post Title
date: 2026-06-14 10:00:00
tags:
- javascript
categories:
- tech
---Write your content in Markdown below the front matter.
Preview the site locally before deploying:
npm startCheck that:
- New posts appear correctly
- Images load
- Links work
Builds the site and deploys the public/ folder to the gh-pages branch:
npm run deployThis runs hexo clean && hexo generate && hexo deploy under the hood, pushing to:
https://github.com/cksachdev/chetansachdev.com.git → branch gh-pages
GitHub Pages then serves the site at chetansachdev.com.
.
├── _config.yml # Hexo site configuration
├── package.json
├── scaffolds/ # Post/page/draft templates
├── source/
│ ├── _posts/ # Blog posts (Markdown)
│ └── _drafts/ # Unpublished drafts
├── themes/ # Active theme(s)
└── public/ # Generated output (git-ignored)