json-theme-even-fork/partials/header.hbs

58 lines
1.2 KiB
Handlebars
Raw Normal View History

2020-10-31 13:19:52 +01:00
<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>