 blog_posts = (start,count) ->
 	blog_load(true).then (blogs) ->
 		_(blogs).sortBy (blog) ->
-			parseInt blog.date.replace('-',''), 10
+			parseInt blog.date.replace(/-/g,''), 10
 		.slice start, count
 		.valueOf()
 

		.map (file) ->
			out = {
				date: file[1]
				title: hmz.titleCase file[2].replace '-', ' '
				path: [file[1],file[2]].join('-')
			}
			

				out
		.then (blogs) ->
			_(blogs).sortBy (blog) ->
				parseInt blog.date.replace(/-/g,''), 10
			.reverse()
			.valueOf()
		.catch (err) -> []
