58 lines
1.2 KiB
Handlebars
58 lines
1.2 KiB
Handlebars
<header class="masthead">
|
|
<div>
|
|
{{#name}}
|
|
<h1>{{.}}</h1>
|
|
{{/name}}
|
|
{{#label}}
|
|
<h2>{{.}}</h2>
|
|
{{/label}}
|
|
</div>
|
|
<ul class="icon-list">
|
|
{{#location}}
|
|
{{#if city}}
|
|
<li>
|
|
{{{icon 'map-pin'}}}
|
|
{{city}}{{#countryCode}}, {{formatCountry .}}{{/countryCode}}
|
|
</li>
|
|
{{/if}}
|
|
{{/location}}
|
|
{{#email}}
|
|
<li>
|
|
{{{icon 'mail'}}}
|
|
<a href="mailto:{{.}}">{{.}}</a>
|
|
</li>
|
|
{{/email}}
|
|
{{#phone}}
|
|
<li>
|
|
{{{icon 'phone'}}}
|
|
<a href="tel:{{formatPhone .}}">{{.}}</a>
|
|
</li>
|
|
{{/phone}}
|
|
{{#url}}
|
|
<li>
|
|
{{{icon 'link'}}}
|
|
<a href="{{.}}">{{formatURL .}}</a>
|
|
</li>
|
|
{{/url}}
|
|
{{#profiles}}
|
|
<li>
|
|
{{{icon network 'user'}}}
|
|
{{#if username}}
|
|
{{#if url}}
|
|
<a href="{{url}}">{{username}}</a>
|
|
{{else}}
|
|
{{username}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{#url}}
|
|
<a href="{{.}}">{{formatURL .}}</a>
|
|
{{/url}}
|
|
{{/if}}
|
|
{{#network}}
|
|
<span class="network">({{.}})</span>
|
|
{{/network}}
|
|
</li>
|
|
{{/profiles}}
|
|
</ul>
|
|
</header>
|