Go from markdown files to SEO-friendly blogs, articles, and documentation in seconds!
prezethd.mov
β
Installs in seconds
Set up your project with a single command.
β
Automatic Image Optimization
Automated image compression, scaling, and responsive srcset handling.
β
SQLite Index
Indexes your markdown files to support search, pagination, sorting, and filtering.
β
Validated Front Matter
Cast front matter into validated DTOs for consistency across your content.
β
Open Graph (OG) images
Generate OG images from front matter using a customizable template.
β
Dynamic Table of Contents
Automatically generate a nested, scroll-synced TOC from your article's headings.
β
SEO Optimization
Automatically generate meta tags based on front matter data for better search engine discoverability.
β
Blade Components
Include Laravel Blade components in your markdown for enriched, interactive content.
β
Complete Customization
Prezet is built to allow full customization of your routes, front matter, and blade templates.
composer require benbjurstrom/prezet
php artisan prezet:install
After adding or modifying your markdown files, you need to update the index to reflect these changes:
php artisan prezet:index
This command updates the SQLite index with the latest front matter information from your markdown files. Run this command whenever you:
- Add a new markdown file
- Change a markdown file's slug
- Modify front matter and want to see those changes reflected on the index page
Note that changes to the main content of your markdown files don't require updating the index, as this content is read directly from the file when displaying a single post.
php artisan serve
Check out your new markdown blog at http://localhost:8000/prezet
Detailed documentation available at prezet.com
The MIT License (MIT). Please see License File for more information.