diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-02-24 21:23:37 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-02-25 00:21:16 +0100 |
commit | ba675a3bf24c1a2fc4afd37caaaefb8b9f80a18c (patch) | |
tree | 9a789440a1698f286387952c1d893ed823f5471a /layouts/_default/list.html | |
parent | de97bdfd07f43e1e394fcd310aeca277e043500b (diff) |
feat: prelimiary work on new layout
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 e8a2608..c27ce17 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 }} |