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

66 lines
1.3 KiB
Handlebars
Raw Normal View History

2020-10-31 13:19:52 +01:00
<header class="masthead">
{{#image}}
<img src="{{.}}" alt="">
{{/image}}
<div>
{{#name}}
<h1>{{.}}</h1>
{{/name}}
{{#label}}
<h2>{{.}}</h2>
{{/label}}
</div>
{{#summary}}
<article>
{{{markdown .}}}
</article>
{{/summary}}
<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>