     locals:
       title: config.site.title + ' / Login'
       message: req.flash('error')
-      config: config
         
 app.post '/login', pass.authenticate 'local',
   successRedirect: '/admin'

    if err
      res.send '<b>Error:</b>' + err
    else
      res.send '<b>Success!</b> Settings Saved.'
      delete require.cache[require.resolve('./config')]
      config = require('./config').config

app.get '/admin/delete/:id?', users.check, (req, res) ->
  posts.findById req.params.id, (err, docs) ->

        locals:
          title: config.site.title
          message: JSON.stringify err
    else
      res.redirect '/admin'

