     )
   catch err
     console.error "Error while processing page: #{page.url}".red
-    callback()
+    callback err
 
   # Run conversion
   convertContent page.ext, content, site.config.converters, (err, res) ->


  callback null, layoutContents

setupCustomTags = (config) ->
  customTags = {}
  for tagName, fn of config.tags
    do (tagName, fn) ->

              site[type][val] or= { name: val, posts: [] }
              site[type][val].posts.push post

      customTags = setupCustomTags config, site

      liquidOptions =
        files: includes
