From c64e6e450a2a9d5797ebe3754d6fb5b4840f50a8 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Sat, 21 Nov 2015 08:20:44 -0500 Subject: [PATCH] Update with FRESH format changes. --- themes/compact/templates/html.html | 20 ++-- themes/compact/templates/pdf.html | 21 ++-- themes/compact/templates/txt.txt | 26 ++++- themes/minimist/templates/doc.xml | 10 +- themes/minimist/templates/html.html | 169 ++++++++++++++++++++++------ themes/minimist/templates/md.txt | 20 ++-- themes/minimist/templates/pdf.html | 161 ++++++++++++++++++++------ themes/minimist/templates/txt.txt | 32 ++++-- themes/modern/templates/doc.xml | 10 +- themes/modern/templates/html.html | 32 +++--- themes/modern/templates/md.txt | 18 +-- themes/modern/templates/pdf.html | 32 +++--- themes/modern/templates/txt.txt | 32 ++++-- 13 files changed, 411 insertions(+), 172 deletions(-) diff --git a/themes/compact/templates/html.html b/themes/compact/templates/html.html index e1578d5..c9b3ca0 100644 --- a/themes/compact/templates/html.html +++ b/themes/compact/templates/html.html @@ -25,7 +25,7 @@ {% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets && r.skills.sets.length ) { %}

Skills


@@ -38,10 +38,10 @@ - {% r.skills.forEach( function( skill, idx, ar) { %} + {% r.skills.sets.forEach( function( skillset ) { %} - {{ skill.name }} - {{ skill.level }} + {{ skillset.name }} + {{ skillset.skills.join(',') }} {% }); %} @@ -129,15 +129,15 @@
{% } %} -{% if( r.publications && r.publications.length ) { %} +{% if( r.writing && r.writing.length ) { %}

Publications


- {% r.publications.forEach( function( pub, idx, ar) { %} + {% r.writing.forEach( function( pub, idx, ar) { %}

- {% if( pub.link ) { %} + {% if( pub.url ) { %} {{ pub.title }}, {{ pub.publisher }} {% } else { %} {{ pub.title }}, {{ pub.publisher }} @@ -151,14 +151,14 @@

{% } %} -{% if( r.awards && r.awards.length ) { %} +{% if( r.recognition && r.recognition.length ) { %}

Awards


- {% r.awards.forEach( function( award, idx, ar) { %} -

{{ award.title }}, {{ award.awarder }} {{ award.safeDate.format('YYYY') }}

+ {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }} {{ award.safe.date.format('YYYY') }}

{{ award.summary|md }} {% }); %}
diff --git a/themes/compact/templates/pdf.html b/themes/compact/templates/pdf.html index f2b2090..bffec4d 100644 --- a/themes/compact/templates/pdf.html +++ b/themes/compact/templates/pdf.html @@ -27,7 +27,7 @@ {% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets && r.skills.sets.length ) { %}

Skills


@@ -40,10 +40,10 @@ - {% r.skills.forEach( function( skill, idx, ar) { %} + {% r.skills.sets.forEach( function( skillset ) { %} - {{ skill.name }} - {{ skill.level }} + {{ skillset.name }} + {{ skillset.skills.join(',') }} {% }); %} @@ -131,15 +131,15 @@
{% } %} -{% if( r.publications && r.publications.length ) { %} +{% if( r.writing && r.writing.length ) { %}

Publications


- {% r.publications.forEach( function( pub, idx, ar) { %} + {% r.writing.forEach( function( pub, idx, ar) { %}

- {% if( pub.link ) { %} + {% if( pub.url ) { %} {{ pub.title }}, {{ pub.publisher }} {% } else { %} {{ pub.title }}, {{ pub.publisher }} @@ -153,14 +153,14 @@

{% } %} -{% if( r.awards && r.awards.length ) { %} +{% if( r.recognition && r.recognition.length ) { %}

Awards


- {% r.awards.forEach( function( award, idx, ar) { %} -

{{ award.title }}, {{ award.awarder }} {{ award.safeDate.format('YYYY') }}

+ {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }} {{ award.safe.date.format('YYYY') }}

{{ award.summary|md }} {% }); %}
@@ -168,4 +168,3 @@ - diff --git a/themes/compact/templates/txt.txt b/themes/compact/templates/txt.txt index 62bcedc..a33c4eb 100644 --- a/themes/compact/templates/txt.txt +++ b/themes/compact/templates/txt.txt @@ -1,3 +1,9 @@ +{# + + compact/txt.txt + A plain text resume template for FluentCV's "compact" theme. + +#} {{ r.name }} {% if (r.contact.email) { %}Email: {{ r.contact.email }}{% } %} {% if (r.contact.phone) { %}Tel: {{ r.contact.phone }}{% } %} @@ -9,7 +15,7 @@ {% if ( r.skills && r.skills.length ) { %}SKILLS -{% r.skills.forEach( function( skill, idx, ar) { %} +{% r.skills.forEach( function( skill ) { %} - {{ skill.name }}: {{ skill.level }} {% }); } %} @@ -17,7 +23,7 @@ {% r.employment.history.forEach( function( proj, idx, ar) { %} {{ proj.employer }} ({{ proj.safe.start.format('YYYY-MM') }} — {{ proj.safe.end.format('YYYY-MM') }}) {{ proj.summary }} -{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high, idx, ar) { %} +{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high ) { %} - {{ high }} {% }); } }); } %} @@ -25,6 +31,20 @@ {% r.education.history.forEach( function( edu, idx, ar) { %} {{ edu.institution }} ({{ edu.safe.start.format('YYYY-MM') }} — {{ edu.safe.end.format('YYYY-MM') }}) {{ edu.summary }} -{% if( edu.courses ) { %}{% edu.courses.forEach( function( course, idx, ar) { %} +{% if( edu.courses ) { %}{% edu.courses.forEach( function( course ) { %} - {{ course }} {% }); } }); } %} + +{% if ( r.service && r.service.history ) { %}VOLUNTEER +{% r.service.history.forEach( function( srv, idx, ar) { %} +{{ srv.organization }} ({{ srv.safe.start.format('YYYY-MM') }} — {{ srv.safe.end.format('YYYY-MM') }}) +{{ srv.summary }} +{% if( srv.highlights ) { %}{% srv.highlights.forEach( function( high ) { %} + - {{ high }} +{% }); } }); } %} + +{% if ( r.writing && r.writing.length ) { %}WRITING +{% r.writing.forEach( function( wri, idx, ar) { %} +{{ wri.title }} ({{ wri.safe.date.format('YYYY-MM') }}) +{{ wri.summary }} +{% }); } %} diff --git a/themes/minimist/templates/doc.xml b/themes/minimist/templates/doc.xml index 815d157..11fe7a2 100644 --- a/themes/minimist/templates/doc.xml +++ b/themes/minimist/templates/doc.xml @@ -2,7 +2,7 @@ @@ -753,8 +753,8 @@ engine: Underscore - {% r.skills.forEach( function( skill, idx, ar) { %} - {% var kwords = skill.summary; %} + {% r.skills.sets.forEach( function( set, idx, ar) { %} + {% var kwords = set.skills.join(', '); %} @@ -764,7 +764,7 @@ engine: Underscore - {{ skill.name|xml }}: + {{ set.name|xml }}: @@ -1012,7 +1012,7 @@ engine: Underscore - {% print( edu.summary || '' ) %} + TODO {% edu.curriculum.forEach( function( course, idx, ar) { %} diff --git a/themes/minimist/templates/html.html b/themes/minimist/templates/html.html index 9522feb..4fb618d 100644 --- a/themes/minimist/templates/html.html +++ b/themes/minimist/templates/html.html @@ -1,13 +1,29 @@ + + + {{ r.name }} - - + + + {{ headFragment }} + {% if( cssInfo.file ) { %} + + {% } else { %} + + {% } %} -
+
+

{{ r.name }}

@@ -17,52 +33,69 @@
- {% if ( r.info.brief && r.info.brief.length ) { %} +
+

About

+ {{ r.info.brief|md }}
{% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %} +
-

Skills


+

Skills

- - - - - - - - - {% r.skills.forEach( function( skill, idx, ar) { %} - - - - - {% }); %} - -
SkillKeywords
{{ skill.name }}{{ skill.level }}
+ + +
    + {% r.skills.sets.forEach( function(set) { %} +
  • +
    +
    +
    +
    + {{ set.name }} +
    + {% if( set.skills && set.skills.length ) { %} + {% set.skills.forEach(function(kw) { %} + {{ kw }} + {% }); %} + {% } %} +
    +
    +
  • + {% }); %} +
+ +
{% } %} -{% if ( r.employment && r.employment.history && r.employment.history.length ) { %} +{% if ( r.employment.history && r.employment.history.length ) { %} +
-

Employment


+

Employment

+ {% r.employment.history.forEach( function( proj, idx, ar) { %} -

{{ proj.employer }} {{ proj.safe.start.format('YYYY-MM') }}—{{ proj.safe.end.format('YYYY-MM') }}

- {% if( proj.summary && proj.summary.length ) { %}

{{ proj.summary|md }}

{% } %} + {% if( proj.url && proj.url.length ) { %} +

{{ proj.position }}, {{ proj.employer }}

+ {% } else { %} +

{{ proj.position }}, {{ proj.employer }}

+ {% } %} + {{ proj.safe.start.format('YYYY-MM') }}—{{ proj.safe.end.format('YYYY-MM') }} + {{ proj.summary|md }} {% if( proj.highlights ) { %}
    {% proj.highlights.forEach( function( high, idx, ar) { %} -
  • {{ high|md }}
  • +
  • {{ high|mdin }}
  • {% }); %}
{% } %} @@ -73,18 +106,85 @@ -{% if ( r.education && r.education.history && r.education.history.length ) { %} +{% if ( r.education.history && r.education.history.length ) { %} +
-

Education


+

Education

+ {% r.education.history.forEach( function( edu, idx, ar) { %} -

{{ edu.institution }} {{ edu.safe.start.format('YYYY-MM') }}—{{ edu.safe.end.format('YYYY-MM') }}

- {% if( edu.summary && edu.summary.length ) { %}

{{ edu.summary|md }}

{% } %} - {% if( edu.curriculum ) { %} +

{{ edu.institution }}

+ {{ edu.safe.start.format('YYYY-MM') }}—{{ edu.safe.end.format('YYYY-MM') }} + {% if( edu.courses ) { %}
    - {% edu.curriculum.forEach( function( course, idx, ar) { %} -
  • {{ course|md }}
  • + {% edu.courses.forEach( function( course, idx, ar) { %} +
  • {{ course|mdin }}
  • + {% }); %} +
+ {% } %} + {% }); %} + +
+{% } %} + +{% if( r.recognition && r.recognition.length ) { %} +
+
+
+

Awards

+
+ + {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }}

+ {{ award.date }} + {{ award.summary|md }} + {% }); %} +
+{% } %} + +{% if( r.writing && r.writing.length ) { %} +
+
+
+

Publications

+
+ + {% r.writing.forEach( function( pub, idx, ar) { %} +

+ {% if( pub.url ) { %} + {{ pub.title }}, {{ pub.publisher }} + {% } else { %} + {{ pub.name }}, {{ pub.publisher }} + {% } %} +

+ Published on: {{ pub.safe.date.format('YYYY-MM') }} + + + + {% }); %} +
+{% } %} + +{% if ( r.service.history && r.service.history.length ) { %} +
+
+
+

Volunteer Work

+
+ + {% r.service.history.forEach( function( vol, idx, ar) { %} + {% if( vol.url && vol.url.length ) { %} +

{{ vol.position }}, {{ vol.organization }}

+ {% } else { %} +

{{ vol.position }}, {{ vol.organization }}

+ {% } %} + {{ vol.safe.start.format('YYYY-MM') }}—{{ vol.safe.end.format('YYYY-MM') }} + {{ vol.summary|md }} + {% if( vol.highlights ) { %} +
    + {% vol.highlights.forEach( function( high, idx, ar) { %} +
  • {{ high|mdin }}
  • {% }); %}
{% } %} @@ -94,6 +194,7 @@ {% } %} +
diff --git a/themes/minimist/templates/md.txt b/themes/minimist/templates/md.txt index c31024a..20cd2d0 100644 --- a/themes/minimist/templates/md.txt +++ b/themes/minimist/templates/md.txt @@ -1,6 +1,6 @@ {# - modern/md.txt + minimist/md.txt A Markdown resume template for FluentCV's "minimist" theme. #} @@ -12,10 +12,10 @@ {% if ( r.info.brief && r.info.brief.length ) { %}{{ r.info.brief }}{% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %} ## Skills -{% r.skills.forEach( function( skill, idx, ar) { %} -- **{{ skill.name }}**: {{ skill.level }} +{% r.skills.sets.forEach( function( set, idx, ar) { %} +- **{{ set.name }}**: {{ set.level }} {% }); } %} {% if ( r.employment.history && r.employment.history.length ) { %} @@ -36,9 +36,9 @@ - {{ course }} {% }); } }); } %} -{% if ( r.publications && r.publications.length ) { %} +{% if ( r.writing && r.writing.length ) { %} ## Publications -{% r.publications.forEach( function( pub, idx, ar) { %} +{% r.writing.forEach( function( pub, idx, ar) { %} ### {{ pub.title }} ({{ pub.safe.date.format('MMM YYYY') }}) {{ pub.publisher }} {{ pub.summary }} @@ -51,9 +51,9 @@ {{ vol.summary }} {% }); } %} -{% if ( r.awards && r.awards.length ) { %} -## Awards -{% r.awards.forEach( function( awd, idx, ar) { %} -### *{{ awd.title }}*, {{ awd.awarder }} ({{ awd.safeDate.format('MMM YYYY') }}) +{% if ( r.recognition && r.recognition.length ) { %} +## Recognition +{% r.recognition.forEach( function( awd, idx, ar) { %} +### *{{ awd.title }}*, {{ awd.from }} ({{ awd.safe.date.format('MMM YYYY') }}) {{ awd.summary }} {% }); } %} diff --git a/themes/minimist/templates/pdf.html b/themes/minimist/templates/pdf.html index 4887df4..bc3b90f 100644 --- a/themes/minimist/templates/pdf.html +++ b/themes/minimist/templates/pdf.html @@ -1,15 +1,25 @@ + + + {{ r.name }} - + + + {{ headFragment }} -
+
+

{{ r.name }}

@@ -19,52 +29,69 @@
- {% if ( r.info.brief && r.info.brief.length ) { %} +
+

About

+ {{ r.info.brief|md }}
{% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %} +
-

Skills


+

Skills

- - - - - - - - - {% r.skills.forEach( function( skill, idx, ar) { %} - - - - - {% }); %} - -
SkillKeywords
{{ skill.name }}{{ skill.level }}
+ + +
    + {% r.skills.sets.forEach( function(set) { %} +
  • +
    +
    +
    +
    + {{ set.name }} +
    + {% if( set.skills && set.skills.length ) { %} + {% set.skills.forEach(function(kw) { %} + {{ kw }} + {% }); %} + {% } %} +
    +
    +
  • + {% }); %} +
+ +
{% } %} -{% if ( r.employment && r.employment.history && r.employment.history.length ) { %} +{% if ( r.employment.history && r.employment.history.length ) { %} +
-

Employment


+

Employment

+ {% r.employment.history.forEach( function( proj, idx, ar) { %} -

{{ proj.employer }} {{ proj.safe.start.format('YYYY-MM') }}—{{ proj.safe.end.format('YYYY-MM') }}

- {% if( proj.summary && proj.summary.length ) { %}

{{ proj.summary|md }}

{% } %} + {% if( proj.url && proj.url.length ) { %} +

{{ proj.position }}, {{ proj.employer }}

+ {% } else { %} +

{{ proj.position }}, {{ proj.employer }}

+ {% } %} + {{ proj.safe.start.format('YYYY-MM') }}—{{ proj.safe.end.format('YYYY-MM') }} + {{ proj.summary|md }} {% if( proj.highlights ) { %}
    {% proj.highlights.forEach( function( high, idx, ar) { %} -
  • {{ high|md }}
  • +
  • {{ high|mdin }}
  • {% }); %}
{% } %} @@ -75,18 +102,85 @@ -{% if ( r.education && r.education.history && r.education.history.length ) { %} +{% if ( r.education.history && r.education.history.length ) { %} +
-

Education


+

Education

+ {% r.education.history.forEach( function( edu, idx, ar) { %} -

{{ edu.institution }} {{ edu.safe.start.format('YYYY-MM') }}—{{ edu.safe.end.format('YYYY-MM') }}

- {% if( edu.summary && edu.summary.length ) { %}

{{ edu.summary|md }}

{% } %} - {% if( edu.curriculum ) { %} +

{{ edu.institution }}

+ {{ edu.safe.start.format('YYYY-MM') }}—{{ edu.safe.end.format('YYYY-MM') }} + {% if( edu.courses ) { %}
    - {% edu.curriculum.forEach( function( course, idx, ar) { %} -
  • {{ course|md }}
  • + {% edu.courses.forEach( function( course, idx, ar) { %} +
  • {{ course|mdin }}
  • + {% }); %} +
+ {% } %} + {% }); %} + +
+{% } %} + +{% if( r.recognition && r.recognition.length ) { %} +
+
+
+

Awards

+
+ + {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }}

+ {{ award.date }} + {{ award.summary|md }} + {% }); %} +
+{% } %} + +{% if( r.writing && r.writing.length ) { %} +
+
+
+

Publications

+
+ + {% r.writing.forEach( function( pub, idx, ar) { %} +

+ {% if( pub.url ) { %} + {{ pub.title }}, {{ pub.publisher }} + {% } else { %} + {{ pub.name }}, {{ pub.publisher }} + {% } %} +

+ Published on: {{ pub.safe.date.format('YYYY-MM') }} + + + + {% }); %} +
+{% } %} + +{% if ( r.service.history && r.service.history.length ) { %} +
+
+
+

Volunteer Work

+
+ + {% r.service.history.forEach( function( vol, idx, ar) { %} + {% if( vol.url && vol.url.length ) { %} +

{{ vol.position }}, {{ vol.organization }}

+ {% } else { %} +

{{ vol.position }}, {{ vol.organization }}

+ {% } %} + {{ vol.safe.start.format('YYYY-MM') }}—{{ vol.safe.end.format('YYYY-MM') }} + {{ vol.summary|md }} + {% if( vol.highlights ) { %} +
    + {% vol.highlights.forEach( function( high, idx, ar) { %} +
  • {{ high|mdin }}
  • {% }); %}
{% } %} @@ -96,6 +190,7 @@ {% } %} +
diff --git a/themes/minimist/templates/txt.txt b/themes/minimist/templates/txt.txt index de721ec..cac2da1 100644 --- a/themes/minimist/templates/txt.txt +++ b/themes/minimist/templates/txt.txt @@ -14,16 +14,20 @@ {% if ( r.info.brief && r.info.brief.length ) { %}{{ r.info.brief }}{% } %} -{% if ( r.skills && r.skills.length ) { %}SKILLS -{% r.skills.forEach( function( skill, idx, ar) { %} - - {{ skill.name }}: {{ skill.level }} -{% }); } %} +{% if ( r.skills && r.skills.sets && r.skills.sets.length ) { %}SKILLS +{% r.skills.sets.forEach( function( set ) { %} + - {{ set.name }}: {% set.skills.forEach(function(sk){ %}{{ sk }}, {% }); %} + {{ set.level }} +{% }); %} +{% } else if( r.skills && r.skills.list && r.skills.list.length ) { %} -{% if ( r.employment.history && r.employment.history.length ) { %}EMPLOYMENT +{% } %} + +{% if ( r.employment && r.employment.history ) { %}EMPLOYMENT {% r.employment.history.forEach( function( proj, idx, ar) { %} {{ proj.employer }} ({{ proj.safe.start.format('YYYY-MM') }} — {{ proj.safe.end.format('YYYY-MM') }}) {{ proj.summary }} -{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high, idx, ar) { %} +{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high ) { %} - {{ high }} {% }); } }); } %} @@ -31,6 +35,20 @@ {% r.education.history.forEach( function( edu, idx, ar) { %} {{ edu.institution }} ({{ edu.safe.start.format('YYYY-MM') }} — {{ edu.safe.end.format('YYYY-MM') }}) {{ edu.summary }} -{% if( edu.courses ) { %}{% edu.courses.forEach( function( course, idx, ar) { %} +{% if( edu.courses ) { %}{% edu.courses.forEach( function( course ) { %} - {{ course }} {% }); } }); } %} + +{% if ( r.service && r.service.history ) { %}VOLUNTEER +{% r.service.history.forEach( function( srv, idx, ar) { %} +{{ srv.organization }} ({{ srv.safe.start.format('YYYY-MM') }} — {{ srv.safe.end.format('YYYY-MM') }}) +{{ srv.summary }} +{% if( srv.highlights ) { %}{% srv.highlights.forEach( function( high ) { %} + - {{ high }} +{% }); } }); } %} + +{% if ( r.writing && r.writing.length ) { %}WRITING +{% r.writing.forEach( function( wri, idx, ar) { %} +{{ wri.title }} ({{ wri.safe.date.format('YYYY-MM') }}) +{{ wri.summary }} +{% }); } %} diff --git a/themes/modern/templates/doc.xml b/themes/modern/templates/doc.xml index 4cba013..d1d10e9 100644 --- a/themes/modern/templates/doc.xml +++ b/themes/modern/templates/doc.xml @@ -1,8 +1,8 @@ @@ -753,8 +753,8 @@ engine: Underscore - {% r.skills.forEach( function( skill, idx, ar) { %} - {% var kwords = skill.summary; %} + {% r.skills.sets.forEach( function( set, idx, ar) { %} + {% var kwords = set.skills.join(', '); %} @@ -764,7 +764,7 @@ engine: Underscore - {{ skill.name|xml }}: + {{ set.name|xml }}: diff --git a/themes/modern/templates/html.html b/themes/modern/templates/html.html index 87d22d3..4c27207 100644 --- a/themes/modern/templates/html.html +++ b/themes/modern/templates/html.html @@ -43,7 +43,7 @@ engine: Underscore {% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %}
@@ -52,16 +52,16 @@ engine: Underscore
    - {% r.skills.forEach( function(skill) { %} + {% r.skills.sets.forEach( function(set) { %}
  • -
    -
    +
    +
    - {{ skill.name }} + {{ set.name }}
    - {% if( skill.keywords && skill.keywords.length ) { %} - {% skill.keywords.forEach(function(kw) { %} + {% if( set.skills && set.skills.length ) { %} + {% set.skills.forEach(function(kw) { %} {{ kw }} {% }); %} {% } %} @@ -128,31 +128,31 @@ engine: Underscore
{% } %} -{% if( r.awards && r.awards.length ) { %} +{% if( r.recognition && r.recognition.length ) { %}

Awards

- {% r.awards.forEach( function( award, idx, ar) { %} -

{{ award.title }}, {{ award.awarder }}

+ {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }}

{{ award.date }} {{ award.summary|md }} {% }); %}
{% } %} -{% if( r.publications && r.publications.length ) { %} +{% if( r.writing && r.writing.length ) { %}

Publications

- {% r.publications.forEach( function( pub, idx, ar) { %} + {% r.writing.forEach( function( pub, idx, ar) { %}

- {% if( pub.link ) { %} + {% if( pub.url ) { %} {{ pub.title }}, {{ pub.publisher }} {% } else { %} {{ pub.name }}, {{ pub.publisher }} @@ -193,12 +193,6 @@ engine: Underscore

{% } %} -{% if( r.elevatorPitch ) { %} -
-
- {{ r.elevatorPitch }} -
-{% } %}
diff --git a/themes/modern/templates/md.txt b/themes/modern/templates/md.txt index ab875c4..edd2dd3 100644 --- a/themes/modern/templates/md.txt +++ b/themes/modern/templates/md.txt @@ -12,10 +12,10 @@ {% if ( r.info.brief && r.info.brief.length ) { %}{{ r.info.brief }}{% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %} ## Skills -{% r.skills.forEach( function( skill, idx, ar) { %} -- **{{ skill.name }}**: {{ skill.level }} +{% r.skills.sets.forEach( function( set, idx, ar) { %} +- **{{ set.name }}**: {{ set.level }} {% }); } %} {% if ( r.employment.history && r.employment.history.length ) { %} @@ -36,9 +36,9 @@ - {{ course }} {% }); } }); } %} -{% if ( r.publications && r.publications.length ) { %} +{% if ( r.writing && r.writing.length ) { %} ## Publications -{% r.publications.forEach( function( pub, idx, ar) { %} +{% r.writing.forEach( function( pub, idx, ar) { %} ### {{ pub.title }} ({{ pub.safe.date.format('MMM YYYY') }}) {{ pub.publisher }} {{ pub.summary }} @@ -51,9 +51,9 @@ {{ vol.summary }} {% }); } %} -{% if ( r.awards && r.awards.length ) { %} -## Awards -{% r.awards.forEach( function( awd, idx, ar) { %} -### *{{ awd.title }}*, {{ awd.awarder }} ({{ awd.safeDate.format('MMM YYYY') }}) +{% if ( r.recognition && r.recognition.length ) { %} +## Recognition +{% r.recognition.forEach( function( awd, idx, ar) { %} +### *{{ awd.title }}*, {{ awd.from }} ({{ awd.safe.date.format('MMM YYYY') }}) {{ awd.summary }} {% }); } %} diff --git a/themes/modern/templates/pdf.html b/themes/modern/templates/pdf.html index 262fe17..c428a7f 100644 --- a/themes/modern/templates/pdf.html +++ b/themes/modern/templates/pdf.html @@ -39,7 +39,7 @@ engine: Underscore {% } %} -{% if ( r.skills && r.skills.length ) { %} +{% if ( r.skills && r.skills.sets ) { %}
@@ -48,16 +48,16 @@ engine: Underscore
    - {% r.skills.forEach( function(skill) { %} + {% r.skills.sets.forEach( function(set) { %}
  • -
    -
    +
    +
    - {{ skill.name }} + {{ set.name }}
    - {% if( skill.keywords && skill.keywords.length ) { %} - {% skill.keywords.forEach(function(kw) { %} + {% if( set.skills && set.skills.length ) { %} + {% set.skills.forEach(function(kw) { %} {{ kw }} {% }); %} {% } %} @@ -124,31 +124,31 @@ engine: Underscore
{% } %} -{% if( r.awards && r.awards.length ) { %} +{% if( r.recognition && r.recognition.length ) { %}

Awards

- {% r.awards.forEach( function( award, idx, ar) { %} -

{{ award.title }}, {{ award.awarder }}

+ {% r.recognition.forEach( function( award, idx, ar) { %} +

{{ award.title }}, {{ award.from }}

{{ award.date }} {{ award.summary|md }} {% }); %}
{% } %} -{% if( r.publications && r.publications.length ) { %} +{% if( r.writing && r.writing.length ) { %}

Publications

- {% r.publications.forEach( function( pub, idx, ar) { %} + {% r.writing.forEach( function( pub, idx, ar) { %}

- {% if( pub.link ) { %} + {% if( pub.url ) { %} {{ pub.title }}, {{ pub.publisher }} {% } else { %} {{ pub.name }}, {{ pub.publisher }} @@ -189,12 +189,6 @@ engine: Underscore

{% } %} -{% if( r.elevatorPitch ) { %} -
-
- {{ r.elevatorPitch }} -
-{% } %}
diff --git a/themes/modern/templates/txt.txt b/themes/modern/templates/txt.txt index ec4eb1a..572e439 100644 --- a/themes/modern/templates/txt.txt +++ b/themes/modern/templates/txt.txt @@ -14,16 +14,20 @@ {% if ( r.info.brief && r.info.brief.length ) { %}{{ r.info.brief }}{% } %} -{% if ( r.skills && r.skills.length ) { %}SKILLS -{% r.skills.forEach( function( skill, idx, ar) { %} - - {{ skill.name }}: {{ skill.level }} -{% }); } %} +{% if ( r.skills && r.skills.sets && r.skills.sets.length ) { %}SKILLS +{% r.skills.sets.forEach( function( set ) { %} + - {{ set.name }}: {% set.skills.forEach(function(sk){ %}{{ sk }}, {% }); %} + {{ set.level }} +{% }); %} +{% } else if( r.skills && r.skills.list && r.skills.list.length ) { %} -{% if ( r.employment.history && r.employment.history.length ) { %}EMPLOYMENT +{% } %} + +{% if ( r.employment && r.employment.history ) { %}EMPLOYMENT {% r.employment.history.forEach( function( proj, idx, ar) { %} {{ proj.employer }} ({{ proj.safe.start.format('YYYY-MM') }} — {{ proj.safe.end.format('YYYY-MM') }}) {{ proj.summary }} -{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high, idx, ar) { %} +{% if( proj.highlights ) { %}{% proj.highlights.forEach( function( high ) { %} - {{ high }} {% }); } }); } %} @@ -31,6 +35,20 @@ {% r.education.history.forEach( function( edu, idx, ar) { %} {{ edu.institution }} ({{ edu.safe.start.format('YYYY-MM') }} — {{ edu.safe.end.format('YYYY-MM') }}) {{ edu.summary }} -{% if( edu.courses ) { %}{% edu.courses.forEach( function( course, idx, ar) { %} +{% if( edu.courses ) { %}{% edu.courses.forEach( function( course ) { %} - {{ course }} {% }); } }); } %} + +{% if ( r.service && r.service.history ) { %}VOLUNTEER +{% r.service.history.forEach( function( srv, idx, ar) { %} +{{ srv.organization }} ({{ srv.safe.start.format('YYYY-MM') }} — {{ srv.safe.end.format('YYYY-MM') }}) +{{ srv.summary }} +{% if( srv.highlights ) { %}{% srv.highlights.forEach( function( high ) { %} + - {{ high }} +{% }); } }); } %} + +{% if ( r.writing && r.writing.length ) { %}WRITING +{% r.writing.forEach( function( wri, idx, ar) { %} +{{ wri.title }} ({{ wri.safe.date.format('YYYY-MM') }}) +{{ wri.summary }} +{% }); } %}