X-Git-Url: https://git.kengrimes.com/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=layouts%2F_default%2Flist.html;h=36c7aab13003e964a75997c6fe296477dd5399c0;hp=4751f67a98228b2e76e70ba87874290d991a8427;hb=6c61007c1278be9ac5fb0bb998a1b530d3c76a23;hpb=ba9d7f74882189d1277f52e417ac3681ac5f65e7 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4751f67..36c7aab 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{- define "main" -}} -{{ $paginator := .Paginate (where .Data.Pages.ByDate "Section" .Section) 5 }} +{{ $paginator := .Paginate (where .Data.Pages.ByLastmod.Reverse "Section" .Section) 12 }} {{- if (gt (len (findRE ")" "\n$1\n
" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "
" | replaceRE "\n" "\n " | safeHTML }} {{- else -}}