   highlight: (code, lang) ->
     if lang?
       hljs.highlight(lang, code).value
-    else 
+    else
       hljs.highlightAuto(code).value
 
 
-poet = Poet app, 
+poet = Poet app,
   posts: './_posts'
   postsPerPage: 3
 

app = express()
app.set 'port',         process.env.PORT or 3000
app.set 'views',        __dirname + '/views'
app.set 'view engine',  'jade' 

app.set 'github name',            'chester1000'
app.set 'github repo url',        'https://api.github.com/repos/%s'

# standard doesn't support easy class injection to a <pre> element.
.addTemplate
  ext: ['markdown', 'md']
  fn: (options) ->
    marked options.source

.addRoute '/', (req, res) ->
  res.render 'page',
    posts: poet.helpers.getPosts 0, 3
    page: 1

