mirror of
https://github.com/JuanCanham/fresh-themes.git
synced 2024-11-22 16:20:11 +00:00
Compact: Use global partials.
This commit is contained in:
parent
3543542f04
commit
e589888935
@ -27,152 +27,45 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "skills"}}
|
{{!<!--
|
||||||
<section id="skills">
|
Use predefined global partials for the other sections.
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Skill</th>
|
|
||||||
<th>Keywords</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each r.skills.sets}}
|
|
||||||
<tr>
|
|
||||||
<td style="width: 25%;">{{ name }}</td>
|
|
||||||
<td class="keywords">{{#each skills}}{{ this }} {{/each}}</td>
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
The "inline" bit before each section allows us to pass a custom heading
|
||||||
|
icon into the global partial. For this theme, we're using Font Awesome.
|
||||||
|
-->}}
|
||||||
|
|
||||||
|
{{#*inline "icon-skills"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
|
{{> section/skills }}
|
||||||
|
|
||||||
{{#section "employment"}}
|
{{#*inline "icon-employment"}}<span class="fa fa-lg fa-building"></span>{{/inline}}
|
||||||
<section id="employment">
|
{{> section/employment }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.employment.history}}
|
|
||||||
<h3><em>{{ position }}</em>,
|
|
||||||
{{#if url }}
|
|
||||||
<a href="{{ url }}">{{ employer }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ employer }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-projects"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
|
{{> section/projects }}
|
||||||
|
|
||||||
|
{{#*inline "icon-education"}}<span class="fa fa-lg fa-mortar-board"></span>{{/inline}}
|
||||||
|
{{> section/education }}
|
||||||
|
|
||||||
{{#section 'projects'}}
|
{{#*inline "icon-service"}}<span class="fa fa-lg fa-child"></span>{{/inline}}
|
||||||
<section id="projects">
|
{{> section/service }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-star"></span>{{{sectionTitle "Projects"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.projects}}
|
|
||||||
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
|
|
||||||
{{#if url}}
|
|
||||||
<a href="{{{ url }}}">{{ title }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ title }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}</span></h3>
|
|
||||||
{{{ summary }}}
|
|
||||||
{{#if proj.highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-samples"}}<span class="fa fa-lg fa-share"></span>{{/inline}}
|
||||||
|
{{> section/samples }}
|
||||||
|
|
||||||
|
{{#*inline "icon-writing"}}<span class="fa fa-lg fa-pencil"></span>{{/inline}}
|
||||||
|
{{> section/writing }}
|
||||||
|
|
||||||
{{#section "education"}}
|
{{#*inline "icon-recognition"}}<span class="fa fa-lg fa-trophy"></span>{{/inline}}
|
||||||
<section id="education">
|
{{> section/recognition }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.education.history}}
|
|
||||||
<h3>{{{ institution }}} <span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
|
||||||
|
{{> section/speaking }}
|
||||||
|
|
||||||
|
{{#*inline "icon-testimonials"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
|
{{> section/testimonials }}
|
||||||
|
|
||||||
{{#section "service"}}
|
{{#*inline "icon-references"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
<section id="volunteer">
|
{{> section/references }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.service.history}}
|
|
||||||
<h3><em>{{ position }}</em>,
|
|
||||||
{{#if url}}
|
|
||||||
<a href="{{ url }}">{{ organization }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ organization }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "writing"}}
|
|
||||||
<section id="publications">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.writing }}
|
|
||||||
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
|
|
||||||
{{ publisher.name }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3>
|
|
||||||
{{# if summary}}{{{ summary }}}{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "recognition"}}
|
|
||||||
<section id="awards">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.recognition}}
|
|
||||||
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
|
||||||
{{ summary }}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,152 +28,45 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "skills"}}
|
{{!<!--
|
||||||
<section id="skills">
|
Use predefined global partials for the other sections.
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Skill</th>
|
|
||||||
<th>Keywords</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{#each r.skills.sets}}
|
|
||||||
<tr>
|
|
||||||
<td style="width: 25%;">{{ name }}</td>
|
|
||||||
<td class="keywords">{{#each skills}}{{ this }} {{/each}}</td>
|
|
||||||
</tr>
|
|
||||||
{{/each}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
The "inline" bit before each section allows us to pass a custom heading
|
||||||
|
icon into the global partial. For this theme, we're using Font Awesome.
|
||||||
|
-->}}
|
||||||
|
|
||||||
|
{{#*inline "icon-skills"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
|
{{> section/skills }}
|
||||||
|
|
||||||
{{#section "employment"}}
|
{{#*inline "icon-employment"}}<span class="fa fa-lg fa-building"></span>{{/inline}}
|
||||||
<section id="employment">
|
{{> section/employment }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.employment.history}}
|
|
||||||
<h3><em>{{ position }}</em>,
|
|
||||||
{{#if url }}
|
|
||||||
<a href="{{ url }}">{{ employer }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ employer }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-projects"}}<span class="fa fa-lg fa-star"></span>{{/inline}}
|
||||||
|
{{> section/projects }}
|
||||||
|
|
||||||
|
{{#*inline "icon-education"}}<span class="fa fa-lg fa-mortar-board"></span>{{/inline}}
|
||||||
|
{{> section/education }}
|
||||||
|
|
||||||
{{#section 'projects'}}
|
{{#*inline "icon-service"}}<span class="fa fa-lg fa-child"></span>{{/inline}}
|
||||||
<section id="projects">
|
{{> section/service }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-star"></span>{{{sectionTitle "Projects"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.projects}}
|
|
||||||
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
|
|
||||||
{{#if url}}
|
|
||||||
<a href="{{{ url }}}">{{ title }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ title }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}</span></h3>
|
|
||||||
{{{ summary }}}
|
|
||||||
{{#if proj.highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-samples"}}<span class="fa fa-lg fa-share"></span>{{/inline}}
|
||||||
|
{{> section/samples }}
|
||||||
|
|
||||||
|
{{#*inline "icon-writing"}}<span class="fa fa-lg fa-pencil"></span>{{/inline}}
|
||||||
|
{{> section/writing }}
|
||||||
|
|
||||||
{{#section "education"}}
|
{{#*inline "icon-recognition"}}<span class="fa fa-lg fa-trophy"></span>{{/inline}}
|
||||||
<section id="education">
|
{{> section/recognition }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.education.history}}
|
|
||||||
<h3>{{{ institution }}} <span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
{{#*inline "icon-speaking"}}<span class="fa fa-lg fa-users"></span>{{/inline}}
|
||||||
|
{{> section/speaking }}
|
||||||
|
|
||||||
|
{{#*inline "icon-testimonials"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
|
{{> section/testimonials }}
|
||||||
|
|
||||||
{{#section "service"}}
|
{{#*inline "icon-references"}}<span class="fa fa-lg fa-thumbs-o-up"></span>{{/inline}}
|
||||||
<section id="volunteer">
|
{{> section/references }}
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.service.history}}
|
|
||||||
<h3><em>{{ position }}</em>,
|
|
||||||
{{#if url}}
|
|
||||||
<a href="{{ url }}">{{ organization }}</a>
|
|
||||||
{{else}}
|
|
||||||
{{ organization }}
|
|
||||||
{{/if}}
|
|
||||||
<span class="tenure">{{dateRange .}}<span></h3>
|
|
||||||
<p style="clear: both;">{{{ summary }}}</p>
|
|
||||||
{{#if highlights}}
|
|
||||||
<ul>
|
|
||||||
{{#each highlights}}
|
|
||||||
<li>{{{ this }}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "writing"}}
|
|
||||||
<section id="publications">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.writing }}
|
|
||||||
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
|
|
||||||
{{ publisher.name }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3>
|
|
||||||
{{# if summary}}{{{ summary }}}{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#section "recognition"}}
|
|
||||||
<section id="awards">
|
|
||||||
<header>
|
|
||||||
<h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr>
|
|
||||||
</header>
|
|
||||||
{{#each r.recognition}}
|
|
||||||
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
|
|
||||||
{{ summary }}
|
|
||||||
{{/each}}
|
|
||||||
</section>
|
|
||||||
{{/section}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user