commit fb43b46b48f6e26a03b84fd8e0e9dac3ceae84f2 parent f801e4d5cdacf8776d29a2d700f4bee94e19d43d Author: Chris Bracken <chris@bracken.jp> Date: Fri, 16 Aug 2019 16:25:01 -0700 Eliminate pagination support I never actually use it and it looks ugly. Diffstat:
M | layouts/index.html | | | 17 | +---------------- |
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html @@ -1,24 +1,9 @@ {{- define "content" -}} <section id="posts"> -{{- $paginator := .Paginate (where .Data.Pages "Type" "post") 50 }} <ol class="post-list"> -{{- range $paginator.Pages }} +{{- range .Site.Pages }} <li>{{ dateFormat "2006-01-02" .Date }}: <a href="{{ .Permalink }}">{{ .Title }}</a> {{- end }} </ol> - -<div class="pager"> -{{- if $paginator.HasPrev -}} -<a href="{{ $paginator.Prev.URL }}">« Previous</a> -{{- else }} -« Previous -{{- end }} - | Page {{ $paginator.PageNumber }} | -{{- if $paginator.HasNext }} -<a href="{{ $paginator.Next.URL }}">Next »</a> -{{- else }} -Next » -{{- end }} -</div> </section> {{- end }}