summaryrefslogtreecommitdiff
path: root/layouts/partials/blog-list.html
blob: c05eb841d76069659f67e2995924cac4de298298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ range (union .Sections .Pages).ByDate.Reverse }}
  <div class="blog-post-wrapper">
    <a class="blog-post-anchor" href="{{ .RelPermalink }}">
      <div class="blog-post">
        <span class="date">
          {{/* .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }} {{ .Date.Format "January" */}}
          {{ .Date.Format "02" }} {{ .Date.Format "Jan" }}
        </span>

        <span class="title">
          {{ .Title }}
        </span>
      </div>
    </a>
  </div>
{{ end }}