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

Introduce global theme partials.

This commit is contained in:
hacksalot
2016-01-06 03:51:13 -05:00
parent 9fd0ce9695
commit b4a93020ec
24 changed files with 599 additions and 59 deletions

View File

@ -3,7 +3,6 @@
<head>
<meta charset="utf-8">
<title>{{ RAW.name }}</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
{{{styleSheet "html.css"}}}
</head>
<body>
@ -17,6 +16,8 @@
</div>
</header>
{{#has "info.brief"}}
<section id="summary">
{{{ r.info.brief }}}
@ -24,6 +25,7 @@
{{/has}}
{{#section "skills"}}
<section id="skills">
<header>
@ -55,7 +57,6 @@
<header>
<h2>{{{sectionTitle "Employment"}}}</h2><hr>
</header>
{{#each r.employment.history}}
<h3><em>{{ position }}</em>,
{{#if url }}
@ -63,7 +64,7 @@
{{else}}
{{ employer }}
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }} &mdash; {{formatDate safe.end 'YYYY-MM' }}<span></h3>
<span class="tenure">{{dateRange .}}<span></h3>
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
@ -73,10 +74,11 @@
</ul>
{{/if}}
{{/each}}
</section>
{{/section}}
{{#section 'projects'}}
<hr>
<section id="projects">
@ -84,12 +86,13 @@
<h2>{{{sectionTitle "Projects"}}}</h2>
</header>
{{#each r.projects}}
<h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}}
{{#if url}}
<h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4>
<a href="{{{ url }}}">{{ title }}</a>
{{else}}
<h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4>
{{ title }}
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }}&mdash;{{formatDate safe.end 'YYYY-MM' }}</span>
<span class="tenure">{{dateRange .}}</span></h3>
{{{ summary }}}
{{#if proj.highlights}}
<ul>
@ -99,22 +102,24 @@
</ul>
{{/if}}
{{/each}}
</section>
{{/section}}
{{#section "education"}}
<section id="education">
<header>
<h2>{{{sectionTitle "Education"}}}</h2><hr>
</header>
{{#each r.education.history}}
<h3>{{{ institution }}} <span class="tenure">{{formatDate safe.start 'YYYY' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
<h3>{{{ institution }}} <span class="tenure">{{dateRange .}}<span></h3>
{{/each}}
</section>
{{/section}}
{{#section "service"}}
<section id="volunteer">
<header>
@ -127,7 +132,7 @@
{{else}}
{{ organization }}
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
<span class="tenure">{{dateRange .}}<span></h3>
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
@ -137,10 +142,11 @@
</ul>
{{/if}}
{{/each}}
</section>
{{/section}}
{{#section "writing"}}
<section id="publications">
<header>
@ -148,24 +154,28 @@
</header>
{{#each r.writing }}
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
{{ publisher }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3>
{{ 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>{{{sectionTitle "recognition" "Awards"}}}</h2><hr>
</header>
{{#each r.recognition}}
<h4><span class="res-label">{{ title }}</span>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h4>
<h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3>
{{ summary }}
{{/each}}
</section>
{{/section}}
</main>
</body>
</html>