 }}/" role="button">{{ . }}</a>
      {{ end -}}
    </div>
    {{ end -}}
  </div>
</div>
</article>
{{ end }}

{{ define "sidebar-footer" }}
{{ if site.Params.doks.relatedPosts -}}
  {{ $related := .Site.RegularPages.Related . | first 3 -}}
  {{ with $related -}}
  <div class="bg-light">
    <section class="section section-related container">
      <div class="row justify-content-center">
        <div class="col-md-12 col-lg-9">
          <h2 class="section-title text-center">Related posts</h2>
        </