mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-11-25 09:30:10 +00:00
Allow overriding of section headers.
This commit is contained in:
parent
1799a49234
commit
2fcb283631
3
partials/html/header-simple.html
Normal file
3
partials/html/header-simple.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<header>
|
||||||
|
<h2>{{{sectionTitle _title _section}}}</h2>
|
||||||
|
</header>
|
7
partials/html/highlights.html
Normal file
7
partials/html/highlights.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{{#if highlights}}
|
||||||
|
<ul>
|
||||||
|
{{#each highlights}}
|
||||||
|
<li>{{{ this }}}</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
@ -1,14 +1,15 @@
|
|||||||
{{#section "education"}}
|
{{#section "education"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="education">
|
<section id="education">
|
||||||
<header>
|
{{#> header-education }}
|
||||||
<h2>{{{sectionTitle "Education"}}}</h2>
|
{{> header-simple _title="EDUCATION" _section="education" }}
|
||||||
{{#> icon-education }}{{/icon-education}}
|
{{#> icon-education }}{{/icon-education}}
|
||||||
</header>
|
{{/header-education}}
|
||||||
{{#each r.education.history}}
|
{{#each r.education.history}}
|
||||||
<div>
|
<div>
|
||||||
<h3>{{{ institution }}}</h3>
|
<h3>{{{ institution }}}</h3>
|
||||||
<span class="tenure">{{dateRange .}}</span>
|
<span class="tenure">{{dateRange .}}</span>
|
||||||
|
{{> highlights }}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
{{#section "employment"}}
|
{{#section "employment"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="employment">
|
<section id="employment">
|
||||||
<header>
|
{{#> header-employment }}
|
||||||
<h2>{{{sectionTitle "Employment"}}}</h2>
|
{{> header-simple _title="EMPLOYMENT" _section="employment" }}
|
||||||
{{#> icon-employment }}{{/icon-employment}}
|
{{#> icon-employment }}{{/icon-employment}}
|
||||||
</header>
|
{{/header-employment}}
|
||||||
|
|
||||||
{{#each r.employment.history}}
|
{{#each r.employment.history}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ position }}</em>,
|
<h3><em>{{ position }}</em>,
|
||||||
@ -18,14 +19,8 @@
|
|||||||
{{#if keywords}}
|
{{#if keywords}}
|
||||||
| <span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
|
| <span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
<p>{{{ summary }}}</p>
|
||||||
{{#if highlights}}
|
{{> highlights }}
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section 'projects'}}
|
{{#section 'projects'}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="projects">
|
<section id="projects">
|
||||||
<header>
|
{{#> header-projects }}
|
||||||
<h2>{{{sectionTitle "Projects"}}}</h2>
|
{{> header-simple _title="PROJECTS" _section="projects" }}
|
||||||
{{#> icon-projects }}{{/icon-projects}}
|
{{#> icon-projects }}{{/icon-projects}}
|
||||||
</header>
|
{{/header-projects}}
|
||||||
{{#each r.projects }}
|
{{#each r.projects }}
|
||||||
<div>
|
<div>
|
||||||
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
|
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
|
||||||
@ -19,13 +19,7 @@
|
|||||||
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
|
{{#if start}}| {{/if}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{{ summary }}}
|
{{{ summary }}}
|
||||||
{{#if highlights}}
|
{{> highlights }}
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
{{#section "recognition"}}
|
{{#section "recognition"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="awards">
|
<section id="recognition">
|
||||||
<header>
|
{{#> header-recognition }}
|
||||||
<h2>{{{sectionTitle "recognition" "Awards"}}}</h2>
|
{{> header-simple _title="RECOGNITION" _section="recognition" }}
|
||||||
{{#> icon-recognition }}{{/icon-recognition}}
|
{{#> icon-recognition }}{{/icon-recognition}}
|
||||||
</header>
|
{{/header-recognition}}
|
||||||
{{#each r.recognition}}
|
{{#each r.recognition}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
||||||
{{ summary }}
|
{{ summary }}
|
||||||
|
{{> highlights }}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section "references"}}
|
{{#section "references"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="awards">
|
<section id="references">
|
||||||
<header>
|
{{#> header-references }}
|
||||||
<h2>{{{sectionTitle "references" "References"}}}</h2>
|
{{> header-simple _title="REFERENCES" _section="references" }}
|
||||||
{{#> icon-references }}{{/icon-references}}
|
{{#> icon-references }}{{/icon-references}}
|
||||||
</header>
|
{{/header-references}}
|
||||||
{{#each r.references}}
|
{{#each r.references}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ name }}</em></h3>
|
<h3><em>{{ name }}</em></h3>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section 'samples'}}
|
{{#section 'samples'}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="samples">
|
<section id="samples">
|
||||||
<header>
|
{{#> header-samples }}
|
||||||
<h2>{{{sectionTitle "Samples"}}}</h2>
|
{{> header-simple _title="SAMPLES" _section="samples" }}
|
||||||
{{#> icon-samples }}{{/icon-samples}}
|
{{#> icon-samples }}{{/icon-samples}}
|
||||||
</header>
|
{{/header-samples}}
|
||||||
{{#each r.samples}}
|
{{#each r.samples}}
|
||||||
<div>
|
<div>
|
||||||
<h3>
|
<h3>
|
||||||
@ -15,13 +15,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="tenure">{{formatDate safe.date 'YYYY-MM'}}</span></h3>
|
<span class="tenure">{{formatDate safe.date 'YYYY-MM'}}</span></h3>
|
||||||
{{{ summary }}}
|
{{{ summary }}}
|
||||||
{{#if highlights}}
|
{{> highlights }}
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section "service"}}
|
{{#section "service"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="volunteer">
|
<section id="service">
|
||||||
<header>
|
{{#> header-samples }}
|
||||||
<h2>{{{sectionTitle "Service"}}}</h2>
|
{{> header-simple _title="SERVICE" _section="service" }}
|
||||||
{{#> icon-service }}{{/icon-service}}
|
{{#> icon-service }}{{/icon-service}}
|
||||||
</header>
|
{{/header-samples}}
|
||||||
{{#each r.service.history}}
|
{{#each r.service.history}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ position }}</em>,
|
<h3><em>{{ position }}</em>,
|
||||||
@ -16,13 +16,7 @@
|
|||||||
</h3>
|
</h3>
|
||||||
<span class="tenure">{{dateRange .}}</span>
|
<span class="tenure">{{dateRange .}}</span>
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
<p style="clear: both;">{{{ summary }}}</p>
|
||||||
{{#if highlights}}
|
{{> highlights }}
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section "skills"}}
|
{{#section "skills"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="skills">
|
<section id="skills">
|
||||||
<header>
|
{{#> header-skills }}
|
||||||
<h2>{{{sectionTitle "Skills"}}}</h2>
|
{{> header-simple _title="SKILLS" _section="skills" }}
|
||||||
{{#> icon-skills }}{{/icon-skills}}
|
{{#> icon-skills }}{{/icon-skills}}
|
||||||
</header>
|
{{/header-skills}}
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
{{#section "speaking"}}
|
{{#section "speaking"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="speaking">
|
<section id="speaking">
|
||||||
<header>
|
{{#> header-speaking }}
|
||||||
<h2>{{{sectionTitle "speaking" "Speaking Engagements"}}}</h2>
|
{{> header-simple _title="SPEAKING" _section="speaking" }}
|
||||||
{{#> icon-speaking }}{{/icon-speaking}}
|
{{#> icon-speaking }}{{/icon-speaking}}
|
||||||
</header>
|
{{/header-speaking}}
|
||||||
{{#each r.speaking}}
|
{{#each r.speaking}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
||||||
{{ summary }}
|
{{ summary }}
|
||||||
|
{{> highlights }}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{#section "testimonials"}}
|
{{#section "testimonials"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="awards">
|
<section id="testimonials">
|
||||||
<header>
|
{{#> header-testimonials }}
|
||||||
<h2>{{{sectionTitle "testimonials" "Testimonials"}}}</h2>
|
{{> header-simple _title="TESTIMONIALS" _section="testimonials" }}
|
||||||
{{#> icon-testimonials }}{{/icon-testimonials}}
|
{{#> icon-testimonials }}{{/icon-testimonials}}
|
||||||
</header>
|
{{/header-testimonials}}
|
||||||
{{#each r.testimonials}}
|
{{#each r.testimonials}}
|
||||||
<div>
|
<div>
|
||||||
<h3><em>{{ name }}</em></h3>
|
<h3><em>{{ name }}</em></h3>
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
{{#section "writing"}}
|
{{#section "writing"}}
|
||||||
<hr>
|
<hr>
|
||||||
<section id="publications">
|
<section id="writing">
|
||||||
<header>
|
{{#> header-writing }}
|
||||||
<h2>{{{sectionTitle "Writing"}}}</h2>
|
{{> header-simple _title="WRITING" _section="writing" }}
|
||||||
{{#> icon-writing }}{{/icon-writing}}
|
{{#> icon-writing }}{{/icon-writing}}
|
||||||
</header>
|
{{/header-writing}}
|
||||||
{{#each r.writing }}
|
{{#each r.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>
|
||||||
<span class="tenure">{{formatDate safe.date 'YYYY'}}</span>
|
<span class="tenure">{{formatDate safe.date 'YYYY'}}</span>
|
||||||
{{{ summary }}}
|
{{{ summary }}}
|
||||||
|
{{> highlights }}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user