A static, flat-file site engine using minimal templating and a little bit of PHP
The aim of this project is to:
- Improve performance over popular alternatives
- Reduce server and backup overhead
- Wave goodbye to any reliance on a database
- Improve my own skills
Create a new markdown file and upload it to the content
folder, the easiest method is to cp template/home.md /content/chosen/location.md
and edit with your favourite text editor.
From there, assign the following variables:
- content type
- author
- date
- tags (optional)
- category
- featured image (optional/theme dependent)
The contenttype
variable is explicitly linked to the themes directory, in which the content type must match the file name of a content type without the extension (ie for "wide", a template file named wide.php
must exist in the theme directory.
There are two themes out of the box, one is a clone of bayton.org named bayton
and the other is a readthedocs.org inspired theme for a documentation-focused site named docs
and is enabled by default. The theme can be changed in the config/config.php
file.
PHP mbstring
PHP Composer
mnapoli/frontyaml (see composer.json in root)
This is my first ever PHP project and there will therefore be issues, poor code quality and other less-than-ideal things to be found in the source. I welcome contributions that will rectify any of the above or any other improvements.