1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2025-05-04 12:57:07 +01:00

Start using {{hasSection}} helper.

This commit is contained in:
hacksalot
2016-01-05 00:24:07 -05:00
parent cf1360bc77
commit f06f97d364
18 changed files with 213 additions and 165 deletions

View File

@ -513,9 +513,9 @@
</w:r>
</w:p> -->
{{{wpml RAW.info.brief }}}
{{> skills }}
{{> employment }}
{{> education }}
{{#hasSection "skills"}}{{> skills }}{{/hasSection}}
{{#hasSection "employment"}}{{> employment }}{{/hasSection}}
{{#hasSection "education"}}{{> education }}{{/hasSection}}
<w:sectPr wsp:rsidR="00B43FDC" wsp:rsidRPr="000A3AF0" wsp:rsidSect="001B7422">
<w:pgSz w:w="12240" w:h="15840"/>
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/>

View File

@ -18,14 +18,14 @@
</header>
{{#if r.info.brief}}
{{#has "info.brief"}}
<section id="summary">
{{{ r.info.brief }}}
</section>
{{/if}}
{{/has}}
{{#if r.skills}}
{{#hasSection "skills"}}
<section id="skills">
<header>
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
@ -47,11 +47,11 @@
</tbody>
</table>
</section>
{{/if}}
{{/hasSection}}
{{#if r.employment}}
{{#hasSection "employment"}}
<section id="employment">
<header>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
@ -92,9 +92,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{# if r.education}}
{{#hasSection "education"}}
<section id="education">
<header>
<h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr>
@ -104,9 +104,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.service}}
{{#hasSection "service"}}
<section id="volunteer">
<header>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
@ -130,9 +130,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.writing}}
{{#hasSection "writing"}}
<section id="publications">
<header>
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
@ -143,9 +143,9 @@
{{# if summary}}{{{ summary }}}{{/if}}
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{# if r.recognition}}
{{#hasSection "recognition"}}
<section id="awards">
<header>
<h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr>
@ -155,7 +155,7 @@
{{ summary }}
{{/each}}
</section>
{{/if}}
{{/hasSection}}
</main>
</body>

View File

@ -7,7 +7,7 @@
{{#if r.info.brief }}{{{ r.info.brief }}}{{/if}}
{{#if r.skills}}
## SKILLS
## {{{sectionTitle "SKILLS"}}}
{{#each r.skills.sets}}
- {{{ name }}}: {{#each this.skills}}{{{ this }}} {{/each}}
@ -18,7 +18,6 @@
## {{{sectionTitle "EMPLOYMENT"}}}
{{#each r.employment.history }}
{{#compare @index 4 operator="<"}}
### {{{ position }}}, {{{ employer }}} ({{formatDate safe.start 'YYYY-MM' }} -- {{formatDate safe.end 'YYYY-MM' }})
{{{ summary }}}
{{#if highlights}}
@ -26,15 +25,6 @@
- {{{ this }}}
{{/each}}
{{/if}}
{{/compare}}
{{#compare @index 4 operator=">="}}
{{#compare @index 4 operator="=="}}
### Previously...
Prior to {{{ employer }}}, I worked on a range of projects for companies large and small.
{{/compare}}
- {{{ position }}}, {{{ employer }}}
{{/compare}}
{{/each}}
{{/if}}

View File

@ -19,14 +19,14 @@
</header>
{{#if r.info.brief}}
{{#has "info.brief"}}
<section id="summary">
{{{ r.info.brief }}}
</section>
{{/if}}
{{/has}}
{{#if r.skills}}
{{#hasSection "skills"}}
<section id="skills">
<header>
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
@ -48,11 +48,11 @@
</tbody>
</table>
</section>
{{/if}}
{{/hasSection}}
{{#if r.employment}}
{{#hasSection "employment"}}
<section id="employment">
<header>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
@ -93,9 +93,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{# if r.education}}
{{#hasSection "education"}}
<section id="education">
<header>
<h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr>
@ -105,9 +105,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.service}}
{{#hasSection "service"}}
<section id="volunteer">
<header>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
@ -131,9 +131,9 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.writing}}
{{#hasSection "writing"}}
<section id="publications">
<header>
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
@ -144,9 +144,9 @@
{{# if summary}}{{{ summary }}}{{/if}}
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{# if r.recognition}}
{{#hasSection "recognition"}}
<section id="awards">
<header>
<h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr>
@ -156,7 +156,7 @@
{{ summary }}
{{/each}}
</section>
{{/if}}
{{/hasSection}}
</main>
</body>

View File

@ -1,9 +1,3 @@
{{!
compact/txt.txt
A plain text resume template for FluentCV's "compact" theme.
}}
{{ r.name }}
{{#if r.contact.email }}Email: {{{ r.contact.email }}}{{/if}}
{{#if r.contact.phone }}Tel: {{{ r.contact.phone }}}{{/if}}
@ -12,40 +6,46 @@
{{#if r.info.brief }}{{{ r.info.brief }}}{{/if}}
{{#if r.skills}}
SKILLS -------------------------------------------------------------------------
{{#hasSection "skills"}}
{{{sectionTitle "SKILLS"}}} -------------------------------------------------------------------------
{{#each r.skills.sets}}
- {{{ name }}}: {{#each this.skills}}{{{ this }}} {{/each}}
- {{{ name }}}: {{#each skills}}{{{ this }}} {{/each}}
{{/each}}
{{/if}}
{{/hasSection}}
{{#if r.employment}}
EMPLOYMENT ---------------------------------------------------------------------
{{#hasSection "employment"}}
{{{sectionTitle "EMPLOYMENT"}}} ---------------------------------------------------------------------
{{#each r.employment.history }}
{{#compare @index 4 operator="<"}}
{{{ position }}}, {{{ employer }}} ({{formatDate safe.start 'YYYY-MM' }} -- {{formatDate safe.end 'YYYY-MM' }})
{{{ summary }}}
{{#if highlights}}
{{#each highlights}}
- {{{ this }}}
- {{{ this }}}
{{/each}}
{{/if}}
{{/compare}}
{{#compare @index 4 operator=">="}}
{{#compare @index 4 operator="=="}}
Previously...
Prior to {{{ employer }}}, I worked on a range of projects for companies large and small.
{{/compare}}
- {{{ position }}}, {{{ employer }}}
{{/compare}}
{{/each}}
{{/hasSection}}
{{#hasSection 'projects'}}
{{{sectionTitle "PROJECTS"}}} -----------------------------------------------------------------------
{{#each r.projects }}
{{{ title }}}, {{{ role }}} ({{formatDate safe.start 'YYYY-MM' }} -- {{formatDate safe.end 'YYYY-MM' }})
{{{ description }}}
{{{ summary }}}
{{#if highlights}}
{{#each highlights}}
- {{{ this }}}
{{/each}}
{{/if}}
{{/each}}
{{/hasSection}}
{{#if r.education}}
EDUCATION ----------------------------------------------------------------------
{{#hasSection "education"}}
{{{sectionTitle "EDUCATION"}}} ----------------------------------------------------------------------
{{#each r.education.history}}
{{{ institution }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }})
@ -54,37 +54,41 @@ EDUCATION ----------------------------------------------------------------------
{{/if}}
{{#if courses}}
{{#each courses}}
- {{{ this }}}{{/each}}{{/if}}
- {{{ this }}}
{{/each}}
{{/if}}
{{#if r.writing}}
WRITING ------------------------------------------------------------------------
{{/each}}
{{/hasSection}}
{{#hasSection "writing"}}
{{{sectionTitle "WRITING"}}} ------------------------------------------------------------------------
{{#each r.writing}}
{{{ title }}} ({{formatDate safe.date 'YYYY-MM' }})
{{{ summary }}}
{{/each}}
{{/if}}
{{/hasSection}}
{{#if r.service }}
SERVICE ------------------------------------------------------------------------
{{#hasSection "service" }}
{{{sectionTitle "SERVICE"}}} ------------------------------------------------------------------------
{{#each r.service.history}}
{{{ organization }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }})
{{{ summary }}}
{{#if highlights}}
{{#each highlights}}
- {{{ this }}}
- {{{ this }}}
{{/each}}
{{/if}}
{{/each}}
{{/hasSection}}
{{/each}}
{{/if}}
{{#if r.recognition}}
RECOGNITION --------------------------------------------------------------------
{{#hasSection "recognition"}}
{{{sectionTitle "RECOGNITION"}}} --------------------------------------------------------------------
{{#each r.recognition}}
{{{ title }}}, {{{ from }}} ({{formatDate safe.date 'MMM YYYY' }})
{{{ summary }}}
{{/each}}
{{/if}}
{{/hasSection}}