layouts reverted to .NextInSection following hugo patch
authorkengrimes <ken@kengrimes.com>
Tue, 3 Apr 2018 21:30:19 +0000 (14:30 -0700)
committerkengrimes <ken@kengrimes.com>
Tue, 3 Apr 2018 21:30:19 +0000 (14:30 -0700)
layouts/_default/list.html
layouts/_default/single.html

index aad3e96..36c7aab 100644 (file)
@@ -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 "<h1" .Content)) 0) -}}
 {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n      " | safeHTML }}</article>
 {{- else -}}
index 057d98f..2f9c4a2 100644 (file)
@@ -1,4 +1,5 @@
 {{- define "main" -}}
+<small>{{ .Page.Lastmod }}</small>
 {{- if (gt (len (findRE "<h1" .Content)) 0) }}
 {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n      " | safeHTML }}</article>
 {{- else -}}