1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-11-22 08:10:10 +00:00

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-icon _title="EDUCATION" _section="education" _hdricon=(lookup . '_icon') }}
{{/header-education}} {{/header-education}}
{{#each r.education.history}} {{#each r.education.history}}
{{#> body-education }}
<div> <div>
<h3>{{{ institution }}}</h3> <h3>{{{ institution }}}</h3>
<span class="tenure">{{dateRange .}}</span> <span class="tenure">{{dateRange .}}</span>
{{> highlights }} {{> highlights }}
</div> </div>
{{/body-education}}
{{/each}} {{/each}}
</section> </section>
{{/section}} {{/section}}

View File

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

View File

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

View File

@ -5,11 +5,14 @@
{{> header-icon _title="RECOGNITION" _section="recognition" _hdricon=(lookup . '_icon') }} {{> header-icon _title="RECOGNITION" _section="recognition" _hdricon=(lookup . '_icon') }}
{{/header-recognition}} {{/header-recognition}}
{{#each r.recognition}} {{#each r.recognition}}
{{#> body-recognition }}
<div> <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 }} {{ summary }}
{{> highlights }} {{> highlights }}
</div> </div>
{{/body-recognition}}
{{/each}} {{/each}}
</section> </section>
{{/section}} {{/section}}

View File

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

View File

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

View File

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

View File

@ -5,11 +5,14 @@
{{> header-icon _title="SPEAKING" _section="speaking" _hdricon=(lookup . '_icon') }} {{> header-icon _title="SPEAKING" _section="speaking" _hdricon=(lookup . '_icon') }}
{{/header-speaking}} {{/header-speaking}}
{{#each r.speaking}} {{#each r.speaking}}
{{#> body-speaking }}
<div> <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 }}} {{{ summary }}}
{{> highlights }} {{> highlights }}
</div> </div>
{{/body-speaking}}
{{/each}} {{/each}}
</section> </section>
{{/section}} {{/section}}

View File

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

View File

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