1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-12-26 23:07:23 +00:00

Allow overriding of section headers.

This commit is contained in:
hacksalot 2016-01-12 09:40:18 -05:00
parent 1799a49234
commit 2fcb283631
13 changed files with 68 additions and 77 deletions

View File

@ -0,0 +1,3 @@
<header>
<h2>{{{sectionTitle _title _section}}}</h2>
</header>

View File

@ -0,0 +1,7 @@
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}

View File

@ -1,14 +1,15 @@
{{#section "education"}}
<hr>
<section id="education">
<header>
<h2>{{{sectionTitle "Education"}}}</h2>
{{#> header-education }}
{{> header-simple _title="EDUCATION" _section="education" }}
{{#> icon-education }}{{/icon-education}}
</header>
{{/header-education}}
{{#each r.education.history}}
<div>
<h3>{{{ institution }}}</h3>
<span class="tenure">{{dateRange .}}</span>
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,11 @@
{{#section "employment"}}
<hr>
<section id="employment">
<header>
<h2>{{{sectionTitle "Employment"}}}</h2>
{{#> icon-employment }}{{/icon-employment}}
</header>
{{#> header-employment }}
{{> header-simple _title="EMPLOYMENT" _section="employment" }}
{{#> icon-employment }}{{/icon-employment}}
{{/header-employment}}
{{#each r.employment.history}}
<div>
<h3><em>{{ position }}</em>,
@ -18,14 +19,8 @@
{{#if keywords}}
| <span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
<p>{{{ summary }}}</p>
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,10 @@
{{#section 'projects'}}
<hr>
<section id="projects">
<header>
<h2>{{{sectionTitle "Projects"}}}</h2>
{{#> icon-projects }}{{/icon-projects}}
</header>
{{#> header-projects }}
{{> header-simple _title="PROJECTS" _section="projects" }}
{{#> icon-projects }}{{/icon-projects}}
{{/header-projects}}
{{#each r.projects }}
<div>
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
@ -19,13 +19,7 @@
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
{{/if}}
{{{ summary }}}
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,14 +1,15 @@
{{#section "recognition"}}
<hr>
<section id="awards">
<header>
<h2>{{{sectionTitle "recognition" "Awards"}}}</h2>
{{#> icon-recognition }}{{/icon-recognition}}
</header>
<section id="recognition">
{{#> header-recognition }}
{{> header-simple _title="RECOGNITION" _section="recognition" }}
{{#> icon-recognition }}{{/icon-recognition}}
{{/header-recognition}}
{{#each r.recognition}}
<div>
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
{{ summary }}
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,10 @@
{{#section "references"}}
<hr>
<section id="awards">
<header>
<h2>{{{sectionTitle "references" "References"}}}</h2>
{{#> icon-references }}{{/icon-references}}
</header>
<section id="references">
{{#> header-references }}
{{> header-simple _title="REFERENCES" _section="references" }}
{{#> icon-references }}{{/icon-references}}
{{/header-references}}
{{#each r.references}}
<div>
<h3><em>{{ name }}</em></h3>

View File

@ -1,10 +1,10 @@
{{#section 'samples'}}
<hr>
<section id="samples">
<header>
<h2>{{{sectionTitle "Samples"}}}</h2>
{{#> icon-samples }}{{/icon-samples}}
</header>
{{#> header-samples }}
{{> header-simple _title="SAMPLES" _section="samples" }}
{{#> icon-samples }}{{/icon-samples}}
{{/header-samples}}
{{#each r.samples}}
<div>
<h3>
@ -15,13 +15,7 @@
{{/if}}
<span class="tenure">{{formatDate safe.date 'YYYY-MM'}}</span></h3>
{{{ summary }}}
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,10 @@
{{#section "service"}}
<hr>
<section id="volunteer">
<header>
<h2>{{{sectionTitle "Service"}}}</h2>
{{#> icon-service }}{{/icon-service}}
</header>
<section id="service">
{{#> header-samples }}
{{> header-simple _title="SERVICE" _section="service" }}
{{#> icon-service }}{{/icon-service}}
{{/header-samples}}
{{#each r.service.history}}
<div>
<h3><em>{{ position }}</em>,
@ -16,13 +16,7 @@
</h3>
<span class="tenure">{{dateRange .}}</span>
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,10 @@
{{#section "skills"}}
<hr>
<section id="skills">
<header>
<h2>{{{sectionTitle "Skills"}}}</h2>
{{#> icon-skills }}{{/icon-skills}}
</header>
{{#> header-skills }}
{{> header-simple _title="SKILLS" _section="skills" }}
{{#> icon-skills }}{{/icon-skills}}
{{/header-skills}}
<table>
<thead>
<tr>

View File

@ -1,14 +1,15 @@
{{#section "speaking"}}
<hr>
<section id="speaking">
<header>
<h2>{{{sectionTitle "speaking" "Speaking Engagements"}}}</h2>
{{#> icon-speaking }}{{/icon-speaking}}
</header>
{{#> header-speaking }}
{{> header-simple _title="SPEAKING" _section="speaking" }}
{{#> icon-speaking }}{{/icon-speaking}}
{{/header-speaking}}
{{#each r.speaking}}
<div>
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
{{ summary }}
{{> highlights }}
</div>
{{/each}}
</section>

View File

@ -1,10 +1,10 @@
{{#section "testimonials"}}
<hr>
<section id="awards">
<header>
<h2>{{{sectionTitle "testimonials" "Testimonials"}}}</h2>
{{#> icon-testimonials }}{{/icon-testimonials}}
</header>
<section id="testimonials">
{{#> header-testimonials }}
{{> header-simple _title="TESTIMONIALS" _section="testimonials" }}
{{#> icon-testimonials }}{{/icon-testimonials}}
{{/header-testimonials}}
{{#each r.testimonials}}
<div>
<h3><em>{{ name }}</em></h3>

View File

@ -1,16 +1,17 @@
{{#section "writing"}}
<hr>
<section id="publications">
<header>
<h2>{{{sectionTitle "Writing"}}}</h2>
{{#> icon-writing }}{{/icon-writing}}
</header>
<section id="writing">
{{#> header-writing }}
{{> header-simple _title="WRITING" _section="writing" }}
{{#> icon-writing }}{{/icon-writing}}
{{/header-writing}}
{{#each r.writing }}
<div>
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
{{ publisher.name }}</h3>
<span class="tenure">{{formatDate safe.date 'YYYY'}}</span>
{{{ summary }}}
{{> highlights }}
</div>
{{/each}}
</section>