mirror of
https://github.com/JuanCanham/jsonresume-theme-modern.git
synced 2024-11-22 00:10:14 +00:00
Format education area and studyType
Earlier, it used to leave a comma if any of them was absent.
This commit is contained in:
parent
1777bbf44a
commit
0ba55cbc87
5
index.js
5
index.js
@ -15,6 +15,11 @@ function render(resumeObject) {
|
||||
}
|
||||
});
|
||||
_.each(resumeObject.education, function(e){
|
||||
if( !e.area || !e.studyType ){
|
||||
e.educationDetail = (e.area == null ? '' : e.area) + (e.studyType == null ? '' : e.studyType);
|
||||
} else {
|
||||
e.educationDetail = e.area + ", "+ e.studyType;
|
||||
}
|
||||
e.startDateYear = e.startDate.substr(0,4);
|
||||
if(e.endDate) {
|
||||
e.endDateYear = e.endDate.substr(0,4);
|
||||
|
@ -93,7 +93,7 @@
|
||||
<div class="skills">
|
||||
{{#education}}
|
||||
<h3>{{institution}}</h3>
|
||||
<h4>{{area}}, {{studyType}}</h4>
|
||||
<h4>{{educationDetail}}</h4>
|
||||
<p>{{startDateYear}} - {{endDateYear}}</p>
|
||||
<p>{{summary}}</p>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user