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"
categories:
- archive
type: archive
icontag: tag
url: /post/2013/
disableComments: true

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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