Your First Page
By default, pages are supposed to be placed in
source/ directory. Soushi supports Markdown for page contents and Front Matter for metadata of a page.
--- title: My Homepage template: page --- This is my homepage!
The metadata properties used in above page are to:
title: refer to the page title
template: refer to the template file for the page
By default, templates are supposed to be placed in
templates/ directory. Templates are just plain PHP scripts enhanced by Plates library.
<html> <head> <link rel="stylesheet" href="main.css"> <title><?= $config->site_title() ?></title> </head> <body> <h1><?= $config->site_title() ?></h1> <h2><?= $title ?></h2> <?= $content ?> </body> </html>
source/ directory that have non-
/* some css descriptions below */
CAVEAT: Assets are NOT automatically copied into
public/ directory which can be shown via preview server described below. Thus, you have to make symlinks to each assets from
$ cd public $ ln -sf ../source/main.css main.css
soushi server to preview your site in browser.
$ ./vendor/bin/soushi server
By default, the server launches at