A minimalist, dark-themed static blog generator built with Python. Creates a clean, responsive blog with markdown support.
- 🌙 Dark mode by default
- 📱 Responsive design
- ✍️ Markdown support
- 🎨 Clean typography with Space Grotesk & Inter fonts
- 🚀 Easy deployment to GitHub Pages
- 💜 Purple accent colors
- 🔗 Social media links
- Python 3.x
- pip (Python package installer)
-
Clone this repository:
git clone https://github.com/yourusername/blog.git
cd blog
-
Install required packages:
pip install markdown2 jinja2
-
Add your blog posts as markdown files in the
posts/
directory -
Run the blog generator:
python blogmaker.py
-
Your blog will be generated in the
docs/
directory
blog/
├── blogmaker.py # Main generator script
├── posts/ # Your markdown blog posts
│ └── *.md
├── templates/ # HTML templates
│ ├── base.html # Post template
│ └── index.html # Homepage template
└── docs/ # Generated blog (GitHub Pages)
-
Create a new markdown (.md) file in
posts/
-
Run
python3 blogmaker.py
to generate the site -
Run
git add .
to add the new post to the repository -
Run
git commit -m "Added a new post"
to commit the changes -
Run
git push
to push the changes to the repository
- Edit
templates/base.html
for post styling - Edit
templates/index.html
for homepage styling - Colors and fonts can be modified in the CSS sections
-
Push your changes to GitHub
-
Enable GitHub Pages in your repository settings:
- Go to Settings → Pages
- Set source to "Deploy from a branch"
- Select "main" branch and "/docs" folder
- Save
Your blog will be available at https://yourusername.github.io/blog
- Keep post filenames URL-friendly (use hyphens instead of spaces)
- Use markdown for consistent formatting
- Add images to a separate
images/
directory - Regularly commit and push changes
- Test locally before deploying
This project is open source and available under the MIT License.
- Built with Python
- Markdown parsing by markdown2
- Templates with Jinja2
- Fonts from Google Fonts