dev-master
9999999-dev https://github.com/malenkiki/phantasticA static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.
MIT
The Requires
by Michel Petit
generator markdown static blog
A static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.
PHP static blog generator ala Jekyll with tags, categories and blocks in native., (*1)
Before, you must have composer to install and use Phantastic., (*2)
You can install Phantastic following 3 possible ways:
- by downloading archive of the latest stable release. Untar it and then go into the newly created directory to run composer update
- by cloning the git repository git clone https://github.com/malenkiki/phantastic.git
and then do the same action like seen previously after untar. Unlike previous, you get the dev-master
branch.
- by using composer into one shot like this: composer create-project malenki/phantastic your-project-name dev-master
, where your-project-name
will be the directory to install Phantastic and then you can start to play with it., (*3)
You can use command line options or write a configuration file in YAML., (*4)
Call ./phantastic --help
or without args to have some help., (*5)
Like you already do with Jekyll! You write some markdown post text files with YAML header and that's all folks!, (*6)
A post must have at least two properties: layout
and title
. The first give the name of the template to use, the second is the post's title., (*7)
So, this is a correct minimal post:, (*8)
--- layout: my-template title: Some Very Important Heading --- # Blah Blah A short sentence.
Blocks are pieces of text written using markdown syntax., (*9)
This files are saved into their own directory., (*10)
Into template PHP files, you can call this blocks like you want, following some tags of the posts, or directly., (*11)
So, all text can be defined outside of templates., (*12)
Categories are autodefined by directories' hierarchy used into posts' directory. But, you can also associated this directories to other names by using YAML configuration file., (*13)
To link directories to their right name, do following, for example:, (*14)
categories some_dir: My Category some_other_dir: Another Category Name last_butnot_the_least_dir: This Category Is A Must Have!
Well, tags areā¦ tags :) You can defined some tags for each of your posts into YAML header like follow:, (*15)
tags: - foo - bar - something
So, when generator runs, it creates tag pages, and a cloud tags is available!, (*16)
Yes, you can add anything you want into YAML header to use it later into your template., (*17)
Laterā¦ I must improve this project yet before go further into the doc, but it is functional like you can see live example here: http://www.decouverte-patrimoine.fr/., (*18)
A static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.
MIT
generator markdown static blog