This project was an experiment in how little code is required to build a blog. It aimed to be a single file blog script.
However it turns out it's just reimplementing Cuttlefish, which you should be using instead.
Download a copy of this repo. Install the project dependencies using composer install
. Then, add content to folders in the repo root they will correspond to URLs (pages/about-us.md
becomes /pages/about-us/
).
Each page can optionally contain front-matter or metadata in the following format:
key: value
another-key: another value.
# Markdown content
Leave two empty lines between the metadata and the markdown content.
Use the local webserver php -S localhost:8080
or any other.
Questions, feedback, issues and merge-requests are welcome.
~Sander