       callback new Error "Error while compiling layout: #{err.message}"
       return
 
+  log.verbose "generate", "Reading complete. Preparing to write"
+
   # Run generators
   async.forEachSeries(
     mergedPlugins.generators,

bundledPlugins = null
# Regexp for matching post filenames
postMask = null
# Global handle for current content being converted
currentState = null

INCLUDE_PATH = '_includes'

module.exports = exports = (config, callback) ->
  log.info
  # First-run initialization
  postMask = ///^(\d{4})-(\d{2})-(\d{2})-(.+)\.(#{config.markdown_ext.join '|'}|html)$///
  time.tzset config.timezone

      if err then return callback err

      # Now write all content to disk
      bundle = { site, config, liquidOptions, compiledLayouts, mergedPlugins, context }
      async.series([
        (cb) -> writePostsAndPages bundle, cb
        (cb) -> writeFiles bundle, cb
