diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e8a26088..c27ce175 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,23 +1,19 @@ {{ define "main" }} -{{ $paginator := (.Paginator.Pages) }}. -{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} -{{ range $paginator.Pages }} - <article class="list"> +<article class="list taxonomy"> + <h2> + {{ humanize .Title }} archives + </h2> + <ul> + {{ $pages := (.Data.Pages) }} + {{ range $pages }} + <li> <a href="{{ .Page.Permalink }}"> - <h2>{{ .Page.Title }}</h2> + <time>{{ .PublishDate.Format "2006-01-02" }}</time> + · + {{ .Page.Title }} </a> - ({{ .PublishDate.Format "January 2, 2006" }}) - <div> - {{ .Page.Content }} - </div> - </article> - {{ end }} - -<nav id="pagination"> - <ul> - {{ if .Paginator.HasPrev }}<li id="page-previous"><a href="{{ .Paginator.Prev.URL }}">← Newer</a></li>{{ end }}<li id="page-number"><span>Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span></li>{{ if .Paginator.HasNext }}<li id="page-next"><a href="{{ .Paginator.Next.URL }}">Older →</a></li>{{ end }} + </li> + {{ end }} </ul> -</nav> - - +</article> {{ end }} |