27 lines
715 B
HTML
27 lines
715 B
HTML
|
{{ 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 }}
|