Skip to content

Commit

Permalink
Merged #217 manually due to change in project structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbullock committed Jun 24, 2016
1 parent 07dd157 commit a173a33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jbake/parser/MarkupEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public Map<String, Object> 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) {
Expand Down

0 comments on commit a173a33

Please sign in to comment.