diff --git a/package.json b/package.json index 9376ee6..0e71f12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluent-themes", - "version": "0.3.0-beta", + "version": "0.4.0-beta", "description": "Resume themes for FluentCV.", "repository": { "type": "git", diff --git a/themes/compact/templates/html.html b/themes/compact/templates/html.html index 644b17d..b572789 100644 --- a/themes/compact/templates/html.html +++ b/themes/compact/templates/html.html @@ -4,7 +4,7 @@ {{ r.basics.name }} - +
@@ -41,7 +41,7 @@ {% r.skills.forEach( function( skill, idx, ar) { %} {{ skill.name }} - {% print( skill.keywords.join(', ') ) %} + {% print( (skill.keywords && skill.keywords.length && skill.keywords.join(', ')) || '[None Specified]' ) %} {% }); %} @@ -129,7 +129,7 @@ {% } %} -{% if( r.publications ) { %} +{% if( r.publications && r.publications.length ) { %}

Publications


@@ -151,7 +151,7 @@
{% } %} -{% if( r.awards ) { %} +{% if( r.awards && r.awards.length ) { %}

Awards


diff --git a/themes/compact/templates/pdf.css b/themes/compact/templates/pdf.css index 4eebd3e..33b6129 100644 --- a/themes/compact/templates/pdf.css +++ b/themes/compact/templates/pdf.css @@ -5,6 +5,19 @@ html, body, main, section, header, ul, p, h1, h2, h3 { display: block; } +a { + color: #0064BD; + text-decoration: none; +} + +a:visited { + color: #7B0796; +} + +a:hover { + text-decoration: underline; +} + h2 { text-transform: uppercase; } @@ -52,6 +65,7 @@ main > header { main > header > h1 { float: left; + font-size: 1.5em; } #contact { float: right; diff --git a/themes/compact/templates/pdf.html b/themes/compact/templates/pdf.html index 7ebff8e..747e5d1 100644 --- a/themes/compact/templates/pdf.html +++ b/themes/compact/templates/pdf.html @@ -43,7 +43,7 @@ {% r.skills.forEach( function( skill, idx, ar) { %} {{ skill.name }} - {% print( skill.keywords.join(', ') ) %} + {% print( (skill.keywords && skill.keywords.length && skill.keywords.join(', ')) || '[None Specified]' ) %} {% }); %} @@ -58,18 +58,41 @@

Employment


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

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

-

{{ proj.summary|md }}

- {% if( proj.highlights ) { %} + {% if( idx < 4 ) { %} +

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

+

{{ proj.summary|md }}

+ {% if( proj.highlights ) { %} +
    + {% proj.highlights.forEach( function( high, idx, ar) { %} +
  • {{ high|mdin }}
  • + {% }); %} +
+ {% } %} + {% } 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.

    - {% proj.highlights.forEach( function( high, idx, ar) { %} -
  • {{ high|md }}
  • - {% }); %} + {% } %} + + +
  • {{ proj.position }}, {{ proj.company }}
  • + + + {% if( idx === ar.length - 1 ) { %}
+ {% } %} + {% } %} {% }); %} + +
{% } %} @@ -81,7 +104,7 @@

Education


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

{{ edu.institution }} {{ edu.startDate }} — {{ edu.endDate }}

+

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

{{ edu.area|md }}

{% }); %} @@ -94,7 +117,7 @@

Volunteer


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

{{ vol.organization }} {{ vol.startDate }} — {{ vol.endDate }}

+

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

{{ vol.summary|md }}

{% if( vol.highlights ) { %}