{{ if not .Params.noauthor }}
{{ if or .Params.author .Site.Params.author}}
{{$authorname := or .Params.author .Site.Params.author }}
{{$authorbio := or .Params.authorbio .Site.Params.authorbio }}
{{$authorlocation := or .Params.authorlocation .Site.Params.authorlocation }}
{{$authorwebsite := or .Params.authorwebsite .Site.Params.authorwebsite }}
{{$authoravatar := or .Params.authoravatar .Site.Params.logo }}

{{with $authoravatar}}
<figure class="author-image">
    <a class="img" href="{{$.Site.BaseURL}}"