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..9fce8de 100644
--- a/themes/compact/templates/pdf.html
+++ b/themes/compact/templates/pdf.html
@@ -58,18 +58,41 @@
+
+
+
{% 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 ) { %}
@@ -108,7 +131,7 @@
{% } %}
-{% if( r.publications ) { %}
+{% if( r.publications && r.publications.length ) { %}
Publications
@@ -121,8 +144,8 @@
{% } else { %}
{{ pub.name }}, {{ pub.publisher }}
{% } %}
+ {{ pub.safeReleaseDate.format('YYYY') }}
- Published on: {{ pub.releaseDate }}
{{ pub.summary|md }}
@@ -130,15 +153,14 @@
{% } %}
-{% if( r.awards ) { %}
+{% if( r.awards && r.awards.length ) { %}
{% r.awards.forEach( function( award, idx, ar) { %}
- {{ award.title }}, {{ award.awarder }}
- {{ award.date }}
+ {{ award.title }}, {{ award.awarder }} {{ award.safeDate.format('YYYY') }}
{{ award.summary|md }}
{% }); %}