 				fileMeta.fullPath = fileFullPath
 				fileMeta.relativePath = fileRelativePath
 				fileMeta.relativeBase = (if relativeDirPath.length then relativeDirPath+'/' else '')+path.basename(fileRelativePath,path.extname(fileRelativePath))
-				fileMeta.url = '/'+fileMeta.relativeBase+'.html'
 				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
 		

				break
	return count


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


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

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