<span class="h2">Most recent</span>
    {{ end }}

    {{ $showAllPostsOnHomePage := false }}
    {{ if (isset .Site.Params "showallpostsonhomepage") }}
      {{ $showAllPostsOnHomePage = .Site.Params.ShowAllPostsOnHomePage }}
    {{ end }}
    {{ $dataFormat := .Site.Params.dateFormat | default "2006-01-02" }}
    {{ if $showAllPostsOnHomePage }}
    <ul class="post-list">
      {{ range (sort .Paginator.Pages "Date" "desc") }}
        <li class="post-item">
          <div class="meta"><time datetime="{{ t