Skip to content

cksachdev/chetansachdev.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

167 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chetansachdev.com

Personal blog built with Hexo and deployed to GitHub Pages via the gh-pages branch.

Prerequisites

  • Node.js (v14+)
  • npm

Setup

npm install

Development

Start the local dev server with live reload:

npm start

The site is available at http://localhost:4000.

Creating a New Post

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.

Testing

Preview the site locally before deploying:

npm start

Check that:

  • New posts appear correctly
  • Images load
  • Links work

Deployment

Builds the site and deploys the public/ folder to the gh-pages branch:

npm run deploy

This 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.

Project Structure

.
├── _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)

About

Profile site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors