From: kengrimes Date: Tue, 3 Apr 2018 21:30:19 +0000 (-0700) Subject: layouts reverted to .NextInSection following hugo patch X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=commitdiff_plain;h=6c61007c1278be9ac5fb0bb998a1b530d3c76a23 layouts reverted to .NextInSection following hugo patch --- diff --git a/layouts/_default/list.html b/layouts/_default/list.html index aad3e96..36c7aab 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{- define "main" -}} -{{ $paginator := .Paginate (where .Data.Pages.ByLastmod.Reverse "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 -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 057d98f..2f9c4a2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,5 @@ {{- define "main" -}} +{{ .Page.Lastmod }} {{- if (gt (len (findRE ")" "\n$1\n
" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "
" | replaceRE "\n" "\n " | safeHTML }} {{- else -}}