2017 © Pedro PelĆ”ez
 

project phantastic

A static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.

image

malenki/phantastic

A static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.

  • Saturday, April 26, 2014
  • by malenki
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 8 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Phantastic!

PHP static blog generator ala Jekyll with tags, categories and blocks in native., (*1)

How to install it?

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)

How does it work?

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)

How must I write my posts?

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.

Tell me more about blocksā€¦

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)

Tell me more about categoriesā€¦

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!

Tell me more about tagsā€¦

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)

Custom YAML Header Properties

Yes, you can add anything you want into YAML header to use it later into your template., (*17)

Tell me more!

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)

The Versions

26/04 2014

dev-master

9999999-dev https://github.com/malenkiki/phantastic

A static blog generator like Jekyll in Ruby world but with tags, categories, blocs in native.

  Sources   Download

MIT

The Requires

 

generator markdown static blog