diff --git a/src/main/java/org/jbake/parser/MarkupEngine.java b/src/main/java/org/jbake/parser/MarkupEngine.java index 3666be69d..916fe9320 100644 --- a/src/main/java/org/jbake/parser/MarkupEngine.java +++ b/src/main/java/org/jbake/parser/MarkupEngine.java @@ -91,6 +91,10 @@ public Map parse(Configuration config, File file, String content // then read engine specific headers processHeader(context); + if (content.get(Crawler.Attributes.DATE) == null) { + content.put(Crawler.Attributes.DATE, new Date(file.lastModified())); + } + if (config.getString(Keys.DEFAULT_STATUS) != null) { // default status has been set if (content.get(Crawler.Attributes.STATUS) == null) {