From 303e0d0adf050950fbd260b535dd38a7708d53d2 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Wed, 18 Nov 2015 23:06:25 -0500 Subject: [PATCH] Convert "compact" theme to FRESH format. --- themes/compact/templates/doc.xml | 41 +++++++++++++---------- themes/compact/templates/html.html | 52 +++++++++++++++--------------- themes/compact/templates/pdf.html | 52 +++++++++++++++--------------- themes/compact/templates/txt.txt | 26 +++++++-------- 4 files changed, 89 insertions(+), 82 deletions(-) diff --git a/themes/compact/templates/doc.xml b/themes/compact/templates/doc.xml index 9362fa1..0dc3724 100644 --- a/themes/compact/templates/doc.xml +++ b/themes/compact/templates/doc.xml @@ -1,10 +1,17 @@ + - {{ r.basics.name|xml }} - {{ r.basics.name|xml }} + {{ r.name|xml }} + {{ r.name|xml }} 4 14 2015-08-28T04:22:00Z @@ -643,7 +650,7 @@ - + @@ -651,7 +658,7 @@ - {{ r.basics.email|xml }} + {{ r.contact.email|xml }} @@ -664,7 +671,7 @@ - + @@ -672,7 +679,7 @@ - {{ r.basics.website|xml }} + {{ r.contact.website|xml }} @@ -691,7 +698,7 @@ - {{ r.basics.phone|xml }} + {{ r.contact.phone|xml }} @@ -701,7 +708,7 @@ - {{ r.basics.name|xml }} + {{ r.name|xml }} @@ -714,7 +721,7 @@ - {{ r.basics.summary|xml }} + {{ r.summary|xml }} @@ -747,7 +754,7 @@ {% r.skills.forEach( function( skill, idx, ar) { %} - {% var kwords = skill.keywords.join(', '); %} + {% var kwords = skill.summary; %} @@ -805,7 +812,7 @@ - {% r.work.forEach( function( proj, idx, ar) { %} + {% r.employment.history.forEach( function( proj, idx, ar) { %} @@ -823,7 +830,7 @@ - {{ proj.company|xml }} + {{ proj.employer|xml }} @@ -860,7 +867,7 @@ - {{ proj.startDate|xml }} — {{ proj.endDate|xml }} + {{ proj.safe.start.format('YYYY-MM')|xml }} — {{ proj.safe.end.format('YYYY-MM')|xml }} @@ -930,7 +937,7 @@ - {% r.education.forEach( function( edu, idx, ar) { %} + {% r.education.history.forEach( function( edu, idx, ar) { %} @@ -985,7 +992,7 @@ - {{ edu.startDate|xml }} — {{ edu.endDate|xml }} + {{ edu.safe.start.format('YYYY-MM')|xml }} — {{ edu.safe.end.format('YYYY-MM')|xml }} @@ -1005,10 +1012,10 @@ - {{ edu.area|xml }} + TODO - {% edu.courses.forEach( function( course, idx, ar) { %} + {% edu.curriculum.forEach( function( course, idx, ar) { %} diff --git a/themes/compact/templates/html.html b/themes/compact/templates/html.html index b572789..21d3f80 100644 --- a/themes/compact/templates/html.html +++ b/themes/compact/templates/html.html @@ -2,25 +2,25 @@ - {{ r.basics.name }} + {{ r.name }}
-

{{ r.basics.name }}

+

{{ r.name }}

- {% if (r.basics.email) { %}{% } %} - {% if (r.basics.phone) { %}
{{ r.basics.phone }}
{% } %} - {% if (r.basics.website) { %}{% } %} + {% if (r.contact.email) { %}{% } %} + {% if (r.contact.phone) { %}
{{ r.contact.phone }}
{% } %} + {% if (r.contact.website) { %}{% } %}
-{% if ( r.basics.summary && r.basics.summary.length ) { %} +{% if ( r.summary && r.summary.length ) { %}
- {{ r.basics.summary|md }} + {{ r.summary|md }}
{% } %} @@ -41,7 +41,7 @@ {% r.skills.forEach( function( skill, idx, ar) { %} {{ skill.name }} - {% print( (skill.keywords && skill.keywords.length && skill.keywords.join(', ')) || '[None Specified]' ) %} + {{ skill.level }} {% }); %} @@ -51,7 +51,7 @@ -{% if ( r.work && r.work.length ) { %} +{% if ( r.employment && r.employment.history ) { %}

Employment


@@ -59,9 +59,9 @@ - {% r.work.forEach( function( proj, idx, ar) { %} + {% r.employment.history.forEach( function( proj, idx, ar) { %} {% if( idx < 4 ) { %} -

{{ proj.position }}, {{ proj.company }} {{ proj.startDate }} — {{ proj.endDate }}

+

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

{{ proj.summary|md }}

{% if( proj.highlights ) { %}
    @@ -73,13 +73,13 @@ {% } else { %} {% if( idx === 4 ) { %} -

    Previously... {{ r.work[ r.work.length - 1 ].safeStartDate.format('YYYY') }} — {{ proj.safeEndDate.format('YYYY') }}

    -

    Prior to {{ r.work[ 3 ].company }}, I worked on a range of projects for companies large and small.

    +

    Previously... {{ r.employment.history[ r.employment.history.length - 1 ].safe.start.format('YYYY') }} — {{ proj.safe.end.format('YYYY') }}

    +

    Prior to {{ r.employment.history[ 3 ].employer }}, I worked on a range of projects for companies large and small.

      {% } %} -
    • {{ proj.position }}, {{ proj.company }}
    • +
    • {{ proj.position }}, {{ proj.employer }}
    • {% if( idx === ar.length - 1 ) { %} @@ -96,26 +96,26 @@ -{% if ( r.education && r.education.length ) { %} +{% if ( r.education && r.education.history ) { %}

      Education


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

      {{ edu.institution }} {{ edu.safeStartDate.format('YYYY') }} — {{ edu.safeEndDate.format('YYYY') }}

      -

      {{ edu.area|md }}

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

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

      + {% if(edu.summary) { %}

      {{ edu.summary|md }}

      {% } %} {% }); %}
      {% } %} -{% if ( r.volunteer && r.volunteer.length ) { %} +{% if ( r.service && r.service.history && r.service.history.length ) { %}

      Volunteer


      - {% r.volunteer.forEach( function( vol, idx, ar ) { %} -

      {{ vol.organization }} {{ vol.safeStartDate.format('YYYY') }} — {{ vol.safeEndDate.format('YYYY') }}

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

      {{ vol.organization }} {{ vol.safe.start.format('YYYY') }} — {{ vol.safe.end.format('YYYY') }}

      {{ vol.summary|md }}

      {% if( vol.highlights ) { %}
        @@ -137,15 +137,15 @@ {% r.publications.forEach( function( pub, idx, ar) { %}

        - {% if( pub.website ) { %} - {{ pub.name }}, {{ pub.publisher }} + {% if( pub.link ) { %} + {{ pub.title }}, {{ pub.publisher }} {% } else { %} - {{ pub.name }}, {{ pub.publisher }} + {{ pub.title }}, {{ pub.publisher }} {% } %} - {{ pub.safeReleaseDate.format('YYYY') }} + {{ pub.safe.date.format('YYYY') }}

        - {{ pub.summary|md }} + {% if (pub.summary) { %}{{ pub.summary|md }}{% } %} {% }); %}
      diff --git a/themes/compact/templates/pdf.html b/themes/compact/templates/pdf.html index 747e5d1..8326475 100644 --- a/themes/compact/templates/pdf.html +++ b/themes/compact/templates/pdf.html @@ -2,7 +2,7 @@ - {{ r.basics.name }} + {{ r.name }}