fix post list pagination
This commit is contained in:
parent
a61ca7e05f
commit
303cdc098d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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/>
|
||||||
|
|
Loading…
Reference in New Issue