Lightweight, non-framework engine to run a markdown blog,
The most bare-minimal engine to run your blog, without eating your disk space.
Make sure your server have these features:
To run the engine, generate a json index list by running the generator first
php machinery.php
It will create a posts list posts.json
that contains a post title and a hash linked to your post.
After that, you can start run the system locally.
php -S localhost:8080 wwwroot/
If you add a new post in your blog, don’t forget to run the generator after that.
Upload the wwwroot
content into your hosting server wwwroot
and create a cron job to to run machinary.php
periodically.
About.md
contents inside wwwroot/lib/
.wwwroot/posts/
with your posts.wwwroot/posts/
directory to prevent your post to be accidentally published to your blog.If you find this project to be useful, you can give me a cup of tea ;)