brain_dump() is a lightweight PHP-based static site generator. It turns Markdown content with frontmatter into a structured, fast-loading static website. Ideal for blogs, pages, or any content-driven site.
- Generates static HTML from Markdown with YAML-style frontmatter
- Supports blog posts, static pages, and paginated blog listings
- Templating system with support for variables and conditional logic
- Generates RSS feeds and sitemaps
- Image processing with thumbnail and WebP conversion
- Only writes updated files to reduce deployment overhead
brain_dump/
├── build.php # The build script
├── config.yaml # Configuration settings
├── content/ # Your content.md files (structure defines site paths)
├── src/ # PHP class files
├── templates/ # HTML templates and partials
├── static/ # Final full site output (excluded from Git)
├── updates/ # Only newly changed or added files (excluded from Git)
├── vendor/ # Composer dependencies (excluded from Git)
├── .gitignore # Keeps repo clean
└── README.md # This file
- Clone the repository:
git clone git@github.com:Troglobitten/brain_dump.git
cd brain_dump- Install PHP dependencies:
composer install- Make sure PHP is available:
php -vRun the build script:
php build.php- The full website goes to
static/ - Changed/new files are in
updates/
Deploy just the updated files:
rsync -av updates/ yourserver:/var/www/html/Or deploy the full site:
rsync -av static/ yourserver:/var/www/html/- Content files must be named
content.md - Frontmatter fields:
title,date,pagetype,tags - Tags in frontmatter: comma-separated values (
tags: php, linux, two words)
MIT License — free to use and modify.