So you want to try out Saisho? No problem! It's fairly easy to configure, and if you'd like, to modify as well!
Server Configuration
Saishō requires all requests to be routed through index.php
.
nginx
The following directive has to be used:
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Apache
under .htaccess
:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
Note: I personally do not use Apache, so I'm hoping this information is correct.
Saisho Configuration
There's not a lot of configuration, but all values are configured through constants in index.php
.
Usage
All files have to be stored in your DATA_DIR
(/data/
by default) and have to contain a YAML Front Matter header, like so:
---
title: Page Title
date: YYYY-MM-DD
---
Everything Else
Everything else should be pretty self explanatory.