SourceEntry sourceEntry = new SourceEntry(file);
List<String> metaLines = new ArrayList<String>();
boolean hasFrontMatter = true;
try {
Source source = sourceParser.parse(sourceEntry);
Map<String, Object> meta = source.getMeta();
if(!meta.containsKey("layout")){
metaLines.add("layout: post");
}
if(!meta.containsKey("date")){
metaLines.add("date: '" + DATE_FORMAT.format(date) + "'");