peruna/layouts/partials/siteinfo.html

27 lines
715 B
HTML
Raw Normal View History

2018-04-03 09:51:11 +00:00
{{ if or ( .Site.Params.avatar ) ( .Site.Params.author ) ( .Site.Params.bio ) ( .Site.Params.contact ) }}
<aside class="p-author">
{{ with .Site.Params.avatar }}
<div class="c-avatar p-author__avatar">
<img alt="Author Avatar" src="{{ . }}" />
</div>
{{ end }}
{{ if or ( .Site.Params.author ) ( .Site.Params.bio ) ( .Site.Params.contact ) }}
<div class="p-author__body">
{{ with .Site.Params.author }}
<p class="c-title p-author__name ">{{ . }}</p>
{{ end }}
{{ with .Site.Params.bio }}
<p>{{ . }}</p>
{{ end }}
{{ with .Site.Params.contact }}
<p>
<a href="{{ . }}">
Contact me
</a>
</p>
{{ end }}
</div>
{{ end }}
</aside>
{{ end }}