1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2025-05-05 13:27:08 +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

@ -485,13 +485,13 @@
</w:r>
</w:hlink>
</w:p>
{{> info }}
{{> skills }}
{{> employment }}
{{> education }}
{{> service }}
{{> writing }}
{{> recognition }}
{{#hasSection "info"}}{{> info }}{{/hasSection}}
{{#hasSection "skills"}}{{> skills }}{{/hasSection}}
{{#hasSection "employment"}}{{> employment }}{{/hasSection}}
{{#hasSection "education"}}{{> education }}{{/hasSection}}
{{#hasSection "service"}}{{> service }}{{/hasSection}}
{{#hasSection "writing"}}{{> writing }}{{/hasSection}}
{{#hasSection "recognition"}}{{> recognition }}{{/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

@ -91,7 +91,34 @@
</section>
{{/if}}
{{# if r.education}}
{{#hasSection 'projects'}}
<hr>
<section id="projects">
<header>
<h3>{{{sectionTitle "Projects"}}}</h3>
</header>
<span class="fa fa-lg fa-building"></span>
{{#each r.projects}}
{{#if url}}
<h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4>
{{else}}
<h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4>
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }}&mdash;{{formatDate safe.end 'YYYY-MM' }}</span>
{{{ summary }}}
{{#if proj.highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
</section>
{{/hasSection}}
{{#hasSection 'education'}}
<hr>
<section id="education">
<header>
@ -111,7 +138,7 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.service}}
<hr>

View File

@ -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

@ -96,7 +96,34 @@
</section>
{{/if}}
{{# if r.education}}
{{#hasSection 'projects'}}
<hr>
<section id="projects">
<header>
<h3>{{{sectionTitle "Projects"}}}</h3>
</header>
<span class="fa fa-lg fa-building"></span>
{{#each r.projects}}
{{#if url}}
<h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4>
{{else}}
<h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4>
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }}&mdash;{{formatDate safe.end 'YYYY-MM' }}</span>
{{{ summary }}}
{{#if proj.highlights}}
<ul>
{{#each highlights}}
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
{{/each}}
</section>
{{/hasSection}}
{{#hasSection 'education'}}
<hr>
<section id="education">
<header>
@ -116,7 +143,7 @@
{{/each}}
</section>
{{/if}}
{{/hasSection}}
{{#if r.service}}
<hr>

View File

@ -6,39 +6,45 @@
{{#if r.info.brief }}{{{ r.info.brief }}}{{/if}}
{{#if r.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}}
{{#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}}
{{#hasSection "education"}}
{{{sectionTitle "EDUCATION"}}} ----------------------------------------------------------------------
{{#each r.education.history}}
@ -48,19 +54,23 @@ Prior to {{{ employer }}}, I worked on a range of projects for companies large a
{{/if}}
{{#if courses}}
{{#each courses}}
- {{{ this }}}{{/each}}{{/if}}
- {{{ this }}}
{{/each}}
{{/if}}
{{#if r.writing}}
{{/each}}
{{/hasSection}}
{{#hasSection "writing"}}
{{{sectionTitle "WRITING"}}} ------------------------------------------------------------------------
{{#each r.writing}}
{{{ title }}} ({{formatDate safe.date 'YYYY-MM' }})
{{{ summary }}}
{{/each}}
{{/if}}
{{/hasSection}}
{{#if r.service }}
{{#hasSection "service" }}
{{{sectionTitle "SERVICE"}}} ------------------------------------------------------------------------
{{#each r.service.history}}
@ -68,17 +78,17 @@ Prior to {{{ employer }}}, I worked on a range of projects for companies large a
{{{ summary }}}
{{#if highlights}}
{{#each highlights}}
- {{{ this }}}
- {{{ this }}}
{{/each}}
{{/if}}
{{/each}}
{{/hasSection}}
{{/each}}
{{/if}}
{{#if r.recognition}}
{{#hasSection "recognition"}}
{{{sectionTitle "RECOGNITION"}}} --------------------------------------------------------------------
{{#each r.recognition}}
{{{ title }}}, {{{ from }}} ({{formatDate safe.date 'MMM YYYY' }})
{{{ summary }}}
{{/each}}
{{/if}}
{{/hasSection}}