hugo-snotra/layouts/partials/author.html

24 lines
658 B
HTML

<div id="author">
<div id="avatar">
<img src="images/{{ .Site.Params.avatar }}" alt="avatar"/>
</div>
<div id="description">
<h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2>
</div>
{{ with .Site.Params.social }}
<ul id="social">
{{ range sort . "weight" }}
<li class="social-element">
{{ if eq .type "tel" }}
<a href="tel:{{ .url }}" rel="me" aria-label="{{ .name }}" title="{{ .name }}">
{{ else }}
<a href="{{ .url }}" rel="me" aria-label="{{ .name }}" title="{{ .name }}">
{{ end }}
<img class="social-icon" src="svg/{{ .icon }}" alt="{{ .name }}" aria-hidden="true">
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}