static site generator
PHP HTML CSS JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
composer.lock
phpcs.xml
phpunit.xml
saori

README.md

Saori

Build Status

Saori is PHP static site generator for github.io

Installation

composer create-project hrgruri/saori-skeleton blog

Usage

php saori

# initialize
php saori init

# generate draft file
php saori draft first_article

# edit draft file
vim draft/first_article/article.md
vim draft/first_article/config.json

# post
php saori post first_article

# generate static site
php saori build

cd username.github.io
git init
git remote add origin git@github.com:username/username.github.io.git
git add --all
git commit -m 'Initial commit'
git push origin master

Setting

contents/config.json

{
    "id"        :   "username",
    "local"     :   "http://localhost:8000",
    "title"     :   "Example Blog",
    "author"    :   "John",
    "theme"     :   "saori",
    "lang"      :   "en",
    "link"      :   {
        "github"    :   "https://github.com",
        "twitter"   :   "https://twitter.com"
    }
}

contents/theme.json

{
    "saori": {
        "color": {
            "header"        : "#A9EEE6",
            "title"         : "#F7FBFC",
            "body"          : "#FEFAEC",
            "page-contents" : "#FFF1CF"
        },
        "date-format" : "F j, Y"
    }
}

my blog and repository