~gpanders/gpanders.com

ref: 202c4541e35e61e9143307ca4a2d9abf6f38aa4f gpanders.com/layouts/posts/list.html -rw-r--r-- 496 bytes
202c4541Greg Anders Modify navbar and disable pagination 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 }}