{{ define "main" }}
<div id="home-jumbotron" class="jumbotron text-center bg-light p-5">
  <h1 class="title">{{ .Site.Title }}</h1>
  <div>
    {{ .Site.Params.Description }}
  </div>
</div>

<div class="row">
  <div class="col-lg-6">
    {{- partial "widget/header.html" (dict "title" "About Me") -}}
    {{- partial "widget/aboutme.html" (dict "avatar" .Site.Params.Author.avatar "description" .Site.Params.Author.description) -}}
  </div>

  <div class="col-lg-6">
    {{- partial "widget/header.html" (dict "title" "Contact Me") -}}
    {{ with .Site.Params.Author.social }}
      {{- partial "widget/socials.html" . -}}
    {{ end }}
  </div>
</div>
{{ end }}

{{ define "sidebar" }}
  {{- if isset .Site.Params.Author "linkdata" -}}
    {{- with (index .Site.Data .Site.Params.Author.linkdata) }}
      <div class="position-sticky">
        {{- partial "widget/header.html" (dict "title" "Links") -}}
        {{- partial "widget/links.html" . -}}
      </div>
    {{- end -}}
  {{- end -}}
{{- end }}