1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2025-05-05 13:27:08 +01:00

Compact: More enhancements.

This commit is contained in:
hacksalot
2015-12-18 14:49:12 -05:00
parent 2e2443fb05
commit d09a6b59a3
3 changed files with 35 additions and 22 deletions

View File

@ -2,25 +2,25 @@
<html>
<head>
<meta charset="utf-8">
<title>{{ r.name }}</title>
<title>{{ RAW.name }}</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="compact-html.css" rel="stylesheet" type="text/css">
</head>
<body>
<main>
<header>
<h1>{{ r.name }}</h1>
<h1>{{{ r.name }}}</h1>
<div id="contact">
{{#if r.contact.email}}<div class="email"><a href="mailto:{{ RAW.contact.email }}">{{ r.contact.email }}</a></div>{{/if}}
{{#if r.contact.phone}}<div class="phone">{{ r.contact.phone }}</div>{{/if}}
{{#if r.contact.website}}<div class="website"><a href="{{ RAW.contact.website }}">{{ r.contact.website }}</a></div>{{/if}}
{{#if r.contact.email}}<div class="email"><a href="mailto:{{{ RAW.contact.email }}}">{{ RAW.contact.email }}</a></div>{{/if}}
{{#if r.contact.phone}}<div class="phone">{{ RAW.contact.phone }}</div>{{/if}}
{{#if r.contact.website}}<div class="website"><a href="{{{ RAW.contact.website }}}">{{trimURL RAW.contact.website }}</a></div>{{/if}}
</div>
</header>
{{#if r.info.brief}}
<section id="summary">
{{ r.info.brief }}
{{{ r.info.brief }}}
</section>
{{/if}}
@ -57,7 +57,7 @@
<h2><span class="fa fa-building" style="vertical-align: top;"></span> Employment</h2><hr>
</header>
{{#each r.employment.history }}
{{#each r.employment.history}}
{{#compare @index 4 operator="<"}}
<h3><em>{{ position }}</em>,
{{#if url }}
@ -66,11 +66,11 @@
{{ employer }}
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY-MM' }} &mdash; {{formatDate safe.end 'YYYY-MM' }}<span></h3>
<p style="clear: both;">{{ summary }}</p>
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{ this }}</li>
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
@ -83,7 +83,7 @@
<ul>
{{/compare}}
<li>{{ position }}, {{ employer }}</li>
<li>{{{ position }}}, {{{ employer }}}</li>
{{#if @last}}
</ul>
@ -100,7 +100,7 @@
<h2><span class="fa fa-mortar-board"></span> 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">{{formatDate safe.start 'YYYY' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
{{/each}}
</section>
@ -119,11 +119,11 @@
{{ organization }}
{{/if}}
<span class="tenure">{{formatDate safe.start 'YYYY' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
<p style="clear: both;">{{ summary }}</p>
<p style="clear: both;">{{{ summary }}}</p>
{{#if highlights}}
<ul>
{{#each highlights}}
<li>{{ this }}</li>
<li>{{{ this }}}</li>
{{/each}}
</ul>
{{/if}}
@ -138,9 +138,9 @@
<h2><span class="fa fa-book"></span> Writing</h2><hr>
</header>
{{#each r.writing }}
<h3><em>{{#if url}}<a href="{{ url }}">{{ title }}</a>{{else}}{{ title }}{{/if}}</em>,
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
{{ publisher }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3>
{{# if summary}}{{ summary }}{{/if}}
{{# if summary}}{{{ summary }}}{{/if}}
{{/each}}
</section>
{{/if}}