~gpanders/gpanders.com

ref: 752f5d9a8695460cf5cac1c921bf9481b2c4d4fc gpanders.com/layouts/blog/list.html -rw-r--r-- 496 bytes
752f5d9aGreg Anders Move 'posts' to 'blog' 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}

{{ partial "heading.html" . }}
{{ .Content }}
{{ range .Pages.GroupByPublishDate "2006" }}
<h2 class="List-header">{{ .Key }}</h2>
<ul class="List">
  {{ range .Pages }}
  <li class="List-item">
    <h3 class="List-link"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
    {{ with .PublishDate | default nil }}
    <time datetime="{{ .Format "2006-01-02T00:00:00Z00:00" }}">{{ .Format "2 January, 2006" }}</time>
    {{ end }}
  </li>
  {{ end }}
</ul>
{{ end }}

{{ end }}