From 6c61007c1278be9ac5fb0bb998a1b530d3c76a23 Mon Sep 17 00:00:00 2001 From: kengrimes Date: Tue, 3 Apr 2018 14:30:19 -0700 Subject: [PATCH] layouts reverted to .NextInSection following hugo patch --- layouts/_default/list.html | 2 +- layouts/_default/single.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -}} -- 2.18.0