fix post list pagination

This commit is contained in:
wgroeneveld 2020-06-13 16:02:14 +02:00
parent a61ca7e05f
commit 303cdc098d
9 changed files with 9 additions and 17 deletions

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2013" title: "Archive by year: 2013"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2013/ url: /post/2013/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2014" title: "Archive by year: 2014"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2014/ url: /post/2014/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2015" title: "Archive by year: 2015"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2015/ url: /post/2015/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2016" title: "Archive by year: 2016"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2016/ url: /post/2016/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2017" title: "Archive by year: 2017"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2017/ url: /post/2017/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2018" title: "Archive by year: 2018"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2018/ url: /post/2018/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2019" title: "Archive by year: 2019"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2019/ url: /post/2019/
disableComments: true disableComments: true

View File

@ -1,7 +1,6 @@
--- ---
title: "Archive by year: 2020" title: "Archive by year: 2020"
categories: type: archive
- archive
icontag: tag icontag: tag
url: /post/2020/ url: /post/2020/
disableComments: true disableComments: true

View File

@ -12,7 +12,7 @@
</header> </header>
{{ end }} {{ end }}
{{ $paginator := .Paginate (where .Data.Pages ".Params.categories" "ne" "archive") }} {{ $paginator := .Paginate (where .Data.Pages ".Params.type" "ne" "archive") }}
{{ if eq $paginator.PageNumber 1 }} {{ if eq $paginator.PageNumber 1 }}
<hr/> <hr/>