mirror of
https://github.com/JuanCanham/jsonresume-theme-modern.git
synced 2024-11-22 08:20:11 +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){
|
_.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);
|
e.startDateYear = e.startDate.substr(0,4);
|
||||||
if(e.endDate) {
|
if(e.endDate) {
|
||||||
e.endDateYear = e.endDate.substr(0,4);
|
e.endDateYear = e.endDate.substr(0,4);
|
||||||
|
@ -93,7 +93,7 @@
|
|||||||
<div class="skills">
|
<div class="skills">
|
||||||
{{#education}}
|
{{#education}}
|
||||||
<h3>{{institution}}</h3>
|
<h3>{{institution}}</h3>
|
||||||
<h4>{{area}}, {{studyType}}</h4>
|
<h4>{{educationDetail}}</h4>
|
||||||
<p>{{startDateYear}} - {{endDateYear}}</p>
|
<p>{{startDateYear}} - {{endDateYear}}</p>
|
||||||
<p>{{summary}}</p>
|
<p>{{summary}}</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user