 			Documents.forEach (Document) ->
 				++tasks.total
 				render(
-					Document,
+					# Document
+					Document
+					# layoutData
 					{
 						Documents: Documents
 						DocumentModel: DocumentModel
 						Document: Document
-					},
+						Site: {
+							date: new Date()
+						}
+					}
+					# next
 					tasks.completer()
 				)
 	

				break
	return count


Date.prototype.toShortDateString = ->
	return this.toDateString().replace(/^[^\s]+\s/,'')


# -------------------------------------

				fileMeta.fullPath = fileFullPath
				fileMeta.relativePath = fileRelativePath
				fileMeta.relativeBase = (if relativeDirPath.length then relativeDirPath+'/' else '')+path.basename(fileRelativePath,path.extname(fileRelativePath))
				fileMeta.body = fileBody
				fileMeta.title = fileMeta.title || path.basename(fileFullPath)
				fileMeta.date = new Date(fileMeta.date || fileStat.ctime)
				fileMeta.slug = util.generateSlugSync fileMeta.relativeBase

				# Update Url
				switch fileMeta.extension
					when '.jade','.md'
						fileMeta.url = '/'+fileMeta.relativeBase+'.html'
					else
						fileMeta.url = '/'+fileMeta.relativeBase+fileMeta.extension
				
				# Store fileMeta
				next fileMeta
		
