fix post list pagination
This commit is contained in:
parent
a61ca7e05f
commit
303cdc098d
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2013"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2013/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2014"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2014/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2015"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2015/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2016"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2016/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2017"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2017/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2018"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2018/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2019"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2019/
|
||||
disableComments: true
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: "Archive by year: 2020"
|
||||
categories:
|
||||
- archive
|
||||
type: archive
|
||||
icontag: tag
|
||||
url: /post/2020/
|
||||
disableComments: true
|
||||
|
|
|
@ -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/>
|
||||
|
|
Loading…
Reference in New Issue