Ghost

Quick Install

$ npm install --production
$ npm start
http://127.0.0.1:2368 & http://127.0.0.1:2368/ghost

Upgrading

Theme Structure

.
├── /assets
    ├── /css
        ├── screen.css
    ├── /fonts
    ├── /images
    ├── /js
├── /partials
    ├── list-post.hbs
├── default.hbs
├── index.hbs [required]
└── post.hbs [required]
└── package.json [required]

Templates

Block Helpers


{{#if}}{{/if}}, {{#foreach posts}}{{/foreach}}

Layout Expressions


{{!< default}} - to declare that it extends the default layout
{{{body}}}

Partial Expressions

Partials allow you to create small reusable templates which you include in other template files. For example, you might create a loop.hbs partial which you use on all of the listing templates to output a short post excerpt. Partials have to live in the /partials/ directory, and are output with the {{> loop}} partial helper. The partial helper will also take a string path if you have subdirectories inside your partials directory, e.g. {{> ‘author/mini-bio’}}.


{{> loop}}

Reference

http://themes.ghost.org/v0.6.3/docs/