More About Layout

_inc/layout.jade defines the overall containing markup of every generated page on the site.

Everything mentioned in the intro is available, but you don't use ejs, you use jade.

In there, you'll see a pretty standard start to a site.

!!! 5

html
  head
    title= config.title + ' » ' + title
    meta( name='description', content=description )
    meta( charset='utf-8' )

    link( rel='canonical', href="#{config.root}/#{permalink}" )

So this will make an HTML5 page, the title will be SITE TITLE » CONTENT TITLE. Meta this, meta that, and the canonical url.

Then we get into some fancy stuff:

styles = _.flatten( [
  config.styles.all,
  config.styles[kind],
  styles || []
] );
... etc

Look in config.json for the styles key. Notice it has 3 keys inside it. all, posts and pages. You can see how those are used here since kind is defined by the type of thing we're rendering. The last styles || [] is the optional array on posts/pages themselves.

Then we get into the body which is standard stuff.

Back to the introduction.
Read more about posts and pages.