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

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