Skip to content

Commit debd866

Browse files
committed
Adjust date references.
1 parent bf34b01 commit debd866

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/core/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ FRESH to JSON Resume conversion routiens.
210210

211211
awards: src.recognition.map(function(awd){
212212
return {
213-
flavor: foreign ? awd.type : undefined,
213+
flavor: foreign ? awd.flavor : undefined,
214214
url: foreign ? awd.url: undefined,
215215
title: awd.title,
216216
date: awd.date,

src/core/fresh-resume.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ Definition of the FRESHResume class.
284284
end: _fmt( vol.end || 'current' )
285285
};
286286
});
287-
// this.awards && this.awards.forEach( function(awd) {
288-
// awd.safeDate = _fmt( awd.date );
289-
// });
290-
this.publications && this.publications.forEach( function(pub) {
287+
this.recognition && this.recognition.forEach( function(rec) {
288+
rec.safe = {
289+
date: _fmt( rec.date )
290+
};
291+
});
292+
this.writing && this.writing.forEach( function(pub) {
291293
pub.safe = {
292-
date: _fmt( pub.year )
294+
date: _fmt( pub.date )
293295
};
294296
});
295297
}

0 commit comments

Comments
 (0)