{{ partial "header.html" . }}
{{ partial "navbar.html" . }}

{{/* Just display author name as title if user profile unavailable. */}}
{{ if not ($.Site.GetPage (printf "/author/%s" (urlize .Title))) }}
<div class="universal-wrapper pt-3">
  <h1 itemprop="name">{{ .Title }}</h1>
</div>
{{ end }}

<section id="about" class="pt-5">
  <div class="container">
    {{/* Only show About widget if a profile has been configured for this user. */}}
    {{ $widget := "widgets/about.html" }}
    {{ $params := dict "root" $ "page" . "author" .Title }}
    {{ with $.Site.GetPage (printf "/author/%s" (urlize .Title)) }}
      {{ partial $widget $params }}
    {{ end }}
    <div class="article-widget">
      <div class="hr-light"></div>
      <h3>{{ i18n "related" }}</h3>
      <ul>
        {{ range .Pages }}
        <li>
          <a href="{{ .Permalink }}">{{ .Title }}</a>
        </li>
        {{ end }}
      </ul>
    </div>
  </div>
</section>

<!-- Page Footer -->
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}
