From e589888935dcbb1e96c2588fe9e989747dc82a50 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Tue, 12 Jan 2016 09:47:37 -0500 Subject: [PATCH] Compact: Use global partials. --- themes/compact/src/compact-html.html | 161 +++++---------------------- themes/compact/src/compact-pdf.html | 161 +++++---------------------- 2 files changed, 54 insertions(+), 268 deletions(-) diff --git a/themes/compact/src/compact-html.html b/themes/compact/src/compact-html.html index 95ae433..e419cb2 100644 --- a/themes/compact/src/compact-html.html +++ b/themes/compact/src/compact-html.html @@ -27,152 +27,45 @@ -{{#section "skills"}} -
-
-

{{{sectionTitle "Skills"}}}


-
- - - - - - - - - {{#each r.skills.sets}} - - - - - {{/each}} - -
SkillKeywords
{{ name }}{{#each skills}}{{ this }} {{/each}}
-
-{{/section}} +{{!}} +{{#*inline "icon-skills"}}{{/inline}} +{{> section/skills }} -{{#section "employment"}} -
-
-

{{{sectionTitle "Employment"}}}


-
- {{#each r.employment.history}} -

{{ position }}, - {{#if url }} - {{ employer }} - {{else}} - {{ employer }} - {{/if}} - {{dateRange .}}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} -
-{{/section}} +{{#*inline "icon-employment"}}{{/inline}} +{{> section/employment }} +{{#*inline "icon-projects"}}{{/inline}} +{{> section/projects }} +{{#*inline "icon-education"}}{{/inline}} +{{> section/education }} -{{#section 'projects'}} -
-
-

{{{sectionTitle "Projects"}}}


-
- {{#each r.projects}} -

{{#if role}}{{camelCase role }},{{/if}} - {{#if url}} - {{ title }} - {{else}} - {{ title }} - {{/if}} - {{dateRange .}}

- {{{ summary }}} - {{#if proj.highlights}} - - {{/if}} - {{/each}} -
-{{/section}} +{{#*inline "icon-service"}}{{/inline}} +{{> section/service }} +{{#*inline "icon-samples"}}{{/inline}} +{{> section/samples }} +{{#*inline "icon-writing"}}{{/inline}} +{{> section/writing }} -{{#section "education"}} -
-
-

{{{sectionTitle "Education"}}}


-
- {{#each r.education.history}} -

{{{ institution }}} {{dateRange .}}

- {{/each}} -
-{{/section}} +{{#*inline "icon-recognition"}}{{/inline}} +{{> section/recognition }} +{{#*inline "icon-speaking"}}{{/inline}} +{{> section/speaking }} +{{#*inline "icon-testimonials"}}{{/inline}} +{{> section/testimonials }} -{{#section "service"}} -
-
-

{{{sectionTitle "Service"}}}


-
- {{#each r.service.history}} -

{{ position }}, - {{#if url}} - {{ organization }} - {{else}} - {{ organization }} - {{/if}} - {{dateRange .}}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} -
-{{/section}} - - - -{{#section "writing"}} -
-
-

{{{sectionTitle "Writing"}}}


-
- {{#each r.writing }} -

{{#if url}}{{{ title }}}{{else}}{{{ title }}}{{/if}}, - {{ publisher.name }} {{formatDate safe.date 'YYYY'}}

- {{# if summary}}{{{ summary }}}{{/if}} - {{/each}} -
-{{/section}} - - - -{{#section "recognition"}} -
-
-

{{{sectionTitle "recognition" "Awards"}}}


-
- {{#each r.recognition}} -

{{ title }}, {{ from }} {{formatDate safe.date 'YYYY' }}

- {{ summary }} - {{/each}} -
-{{/section}} +{{#*inline "icon-references"}}{{/inline}} +{{> section/references }} diff --git a/themes/compact/src/compact-pdf.html b/themes/compact/src/compact-pdf.html index 602391d..3aae33f 100644 --- a/themes/compact/src/compact-pdf.html +++ b/themes/compact/src/compact-pdf.html @@ -28,152 +28,45 @@ -{{#section "skills"}} -
-
-

{{{sectionTitle "Skills"}}}


-
- - - - - - - - - {{#each r.skills.sets}} - - - - - {{/each}} - -
SkillKeywords
{{ name }}{{#each skills}}{{ this }} {{/each}}
-
-{{/section}} +{{!}} +{{#*inline "icon-skills"}}{{/inline}} +{{> section/skills }} -{{#section "employment"}} -
-
-

{{{sectionTitle "Employment"}}}


-
- {{#each r.employment.history}} -

{{ position }}, - {{#if url }} - {{ employer }} - {{else}} - {{ employer }} - {{/if}} - {{dateRange .}}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} -
-{{/section}} +{{#*inline "icon-employment"}}{{/inline}} +{{> section/employment }} +{{#*inline "icon-projects"}}{{/inline}} +{{> section/projects }} +{{#*inline "icon-education"}}{{/inline}} +{{> section/education }} -{{#section 'projects'}} -
-
-

{{{sectionTitle "Projects"}}}


-
- {{#each r.projects}} -

{{#if role}}{{camelCase role }},{{/if}} - {{#if url}} - {{ title }} - {{else}} - {{ title }} - {{/if}} - {{dateRange .}}

- {{{ summary }}} - {{#if proj.highlights}} - - {{/if}} - {{/each}} -
-{{/section}} +{{#*inline "icon-service"}}{{/inline}} +{{> section/service }} +{{#*inline "icon-samples"}}{{/inline}} +{{> section/samples }} +{{#*inline "icon-writing"}}{{/inline}} +{{> section/writing }} -{{#section "education"}} -
-
-

{{{sectionTitle "Education"}}}


-
- {{#each r.education.history}} -

{{{ institution }}} {{dateRange .}}

- {{/each}} -
-{{/section}} +{{#*inline "icon-recognition"}}{{/inline}} +{{> section/recognition }} +{{#*inline "icon-speaking"}}{{/inline}} +{{> section/speaking }} +{{#*inline "icon-testimonials"}}{{/inline}} +{{> section/testimonials }} -{{#section "service"}} -
-
-

{{{sectionTitle "Service"}}}


-
- {{#each r.service.history}} -

{{ position }}, - {{#if url}} - {{ organization }} - {{else}} - {{ organization }} - {{/if}} - {{dateRange .}}

-

{{{ summary }}}

- {{#if highlights}} - - {{/if}} - {{/each}} -
-{{/section}} - - - -{{#section "writing"}} -
-
-

{{{sectionTitle "Writing"}}}


-
- {{#each r.writing }} -

{{#if url}}{{{ title }}}{{else}}{{{ title }}}{{/if}}, - {{ publisher.name }} {{formatDate safe.date 'YYYY'}}

- {{# if summary}}{{{ summary }}}{{/if}} - {{/each}} -
-{{/section}} - - - -{{#section "recognition"}} -
-
-

{{{sectionTitle "recognition" "Awards"}}}


-
- {{#each r.recognition}} -

{{ title }}, {{ from }} {{formatDate safe.date 'YYYY' }}

- {{ summary }} - {{/each}} -
-{{/section}} +{{#*inline "icon-references"}}{{/inline}} +{{> section/references }}