Improve consistency of partials.

This commit is contained in:
hacksalot 2016-01-12 21:29:06 -05:00
parent 786689c42d
commit 56408b82ef
10 changed files with 30 additions and 9 deletions

View File

@ -5,11 +5,13 @@
{{> header-icon _title="EDUCATION" _section="education" _hdricon=(lookup . '_icon') }}
{{/header-education}}
{{#each r.education.history}}
{{#> body-education }}
<div>
<h3>{{{ institution }}}</h3>
<span class="tenure">{{dateRange .}}</span>
{{> highlights }}
</div>
{{/body-education}}
{{/each}}
</section>
{{/section}}

View File

@ -6,6 +6,7 @@
{{/header-employment}}
{{#each r.employment.history}}
{{#> body-employment }}
<div>
<h3><em>{{ position }}</em>,
{{#if url }}
@ -15,12 +16,11 @@
{{/if}}
</h3>
<span class="tenure">{{dateRange .}}</span>
{{#if keywords}}
| <span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
<p>{{{ summary }}}</p>
{{> highlights }}
{{#if keywords}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>{{/if}}
</div>
{{/body-employment}}
{{/each}}
</section>
{{/section}}

View File

@ -5,6 +5,7 @@
{{> header-icon _title="PROJECTS" _section="projects" _hdricon=(lookup . '_icon') }}
{{/header-projects}}
{{#each r.projects }}
{{#> body-projects }}
<div>
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
{{#if url}}
@ -14,12 +15,13 @@
{{/if}}
</h3>
{{#if start}}<span class="tenure">{{dateRange .}}</span>{{/if}}
{{#if keywords}}
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
{{{ summary }}}
{{> highlights }}
{{#if keywords}}
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
</div>
{{/body-projects }}
{{/each}}
</section>
{{/section}}

View File

@ -5,11 +5,14 @@
{{> header-icon _title="RECOGNITION" _section="recognition" _hdricon=(lookup . '_icon') }}
{{/header-recognition}}
{{#each r.recognition}}
{{#> body-recognition }}
<div>
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
<h3><em>{{ title }}</em>, {{ from }}</h3>
<span class="tenure">{{formatDate safe.date 'YYYY' }}</span>
{{ summary }}
{{> highlights }}
</div>
{{/body-recognition}}
{{/each}}
</section>
{{/section}}

View File

@ -5,10 +5,12 @@
{{> header-icon _title="REFERENCES" _section="references" _hdricon=(lookup . '_icon') }}
{{/header-references}}
{{#each r.references}}
{{#> body-references }}
<div>
<h3><em>{{ name }}</em></h3>
{{ summary }}
</div>
{{/body-references}}
{{/each}}
</section>
{{/section}}

View File

@ -5,6 +5,7 @@
{{> header-icon _title="SAMPLES" _section="samples" _hdricon=(lookup . '_icon') }}
{{/header-samples}}
{{#each r.samples}}
{{#> body-samples }}
<div>
<h3>
{{#if url}}
@ -12,10 +13,12 @@
{{else}}
{{ title }}
{{/if}}
<span class="tenure">{{formatDate safe.date 'YYYY-MM'}}</span></h3>
</h3>
<span class="tenure">{{formatDate safe.date 'YYYY-MM'}}</span>
{{{ summary }}}
{{> highlights }}
</div>
{{/body-samples}}
{{/each}}
</section>
{{/section}}

View File

@ -5,6 +5,7 @@
{{> header-icon _title="SERVICE" _section="service" _hdricon=(lookup . '_icon') }}
{{/header-samples}}
{{#each r.service.history}}
{{#> body-service }}
<div>
<h3><em>{{ position }}</em>,
{{#if url}}
@ -17,6 +18,7 @@
<p style="clear: both;">{{{ summary }}}</p>
{{> highlights }}
</div>
{{/body-service }}
{{/each}}
</section>
{{/section}}

View File

@ -5,11 +5,14 @@
{{> header-icon _title="SPEAKING" _section="speaking" _hdricon=(lookup . '_icon') }}
{{/header-speaking}}
{{#each r.speaking}}
{{#> body-speaking }}
<div>
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
<h3><em>{{ title }}</em>, {{ from }}</h3>
<span class="tenure">{{formatDate safe.date 'YYYY' }}</span>
{{{ summary }}}
{{> highlights }}
</div>
{{/body-speaking}}
{{/each}}
</section>
{{/section}}

View File

@ -5,10 +5,12 @@
{{> header-icon _title="TESTIMONIALS" _section="testimonials" _hdricon=(lookup . '_icon') }}
{{/header-testimonials}}
{{#each r.testimonials}}
{{#> body-testimonials }}
<div>
<h3><em>{{ name }}</em></h3>
<p>{{{ quote }}}</p>
</div>
{{/body-testimonials}}
{{/each}}
</section>
{{/section}}

View File

@ -5,6 +5,7 @@
{{> header-icon _title="WRITING" _section="writing" _hdricon=(lookup . '_icon') }}
{{/header-writing}}
{{#each r.writing }}
{{#> body-writing }}
<div>
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
{{ publisher.name }}</h3>
@ -12,6 +13,7 @@
{{{ summary }}}
{{> highlights }}
</div>
{{/body-writing}}
{{/each}}
</section>
{{/section}}