Remove list pages by latest to see if the showLastUpdated parameter works
This commit is contained in:
parent
861da326d4
commit
cedb0603a9
@ -34,7 +34,7 @@
|
|||||||
{{ else if in "section term" $navLinkPage.Kind }}
|
{{ else if in "section term" $navLinkPage.Kind }}
|
||||||
<h1 class="section-header">{{ .Name }}<a href="{{ .URL }}" class="hanchor" arialabel="Anchor">⌗</a></h1>
|
<h1 class="section-header">{{ .Name }}<a href="{{ .URL }}" class="hanchor" arialabel="Anchor">⌗</a></h1>
|
||||||
{{ $paginateCount := default 2 $.Site.Params.homepagePaginateCount }}
|
{{ $paginateCount := default 2 $.Site.Params.homepagePaginateCount }}
|
||||||
{{ range first $paginateCount $navLinkPage.Pages.ByDate.Reverse }}
|
{{ range first $paginateCount $navLinkPage.Pages }}
|
||||||
{{ partial "collection.html" . }}
|
{{ partial "collection.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
@ -77,7 +77,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
<section class="posts">
|
<section class="posts">
|
||||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||||
{{ range $paginator.Pages.ByDate.Reverse }}
|
{{ range $paginator.Pages }}
|
||||||
{{ partial "collection.html" . }}
|
{{ partial "collection.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user