A simple blog site that uses Markdown files for posts and runs fully on GitHub Pages.
No backend. No build step. Just files and a browser.
This project is a static blog system made with HTML, CSS, and JavaScript.
Blog posts are written in Markdown and loaded dynamically from GitHub using raw file links.
Everything is controlled through a single config file.
URL
https://bthavanish.github.io/blog/
| Feature | Description |
|---|---|
| Markdown posts | Write posts using .md files |
| GitHub Pages | Works with free GitHub hosting |
| Client-side routing | Supports clean URLs |
| Config based | No hardcoded posts |
| Comment support | Giscus, Utterances, Disqus |
| No build tools | Runs as-is |
- Blog posts are stored as Markdown files.
- JavaScript fetches the raw Markdown from GitHub.
- Markdown is converted to HTML in the browser.
- Posts are rendered based on the config file.
No server is involved.
/
├── index.html Main entry file
├── 404.html Routing support for GitHub Pages
├── config.json Site configuration and post list
├── style.css Styling
├── script.js Logic and rendering
Create a Markdown file.
# My First Post
This is my blog post written in Markdown.Get the raw GitHub URL for the file.
Edit config.json and add a new object:
{
"title": "My First Post",
"slug": "my-first-post",
"description": "Short description here",
"url": "https://raw.githubusercontent.com/username/repo/main/post.md",
"date": "2025-01-01",
"tags": ["blog", "markdown"]
}Save the file and refresh the site.
All site settings live in config.json.
You can control:
- Site title and description
- Home page text
- Blog post list
- Theme colors
- Footer text
- Comment provider
Supported Comment Systems
- Giscus
- Utterances
- Disqus
You can open index.html directly, but some browsers block fetch requests.
Recommended:
python -m http.serverThen open http://localhost:8000.
- Fork or clone this repository
- Push it to GitHub
- Open repository settings
- Enable GitHub Pages
- Select the correct branch
The site will be live in a few minutes.
You are free to modify:
- HTML structure
- CSS styles
- JavaScript behavior
Nothing is hidden or locked.
MIT License
Copyright (c) 2025 bthavanish
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.
The Software is provided "as is", without warranty of any kind.