From 303cdc098d5f7ea9d48b2dc5aed39231a1da9cd8 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Sat, 13 Jun 2020 16:02:14 +0200 Subject: [PATCH] fix post list pagination --- content/post/2013/2013.md | 3 +-- content/post/2014/2014.md | 3 +-- content/post/2015/2015.md | 3 +-- content/post/2016/2016.md | 3 +-- content/post/2017/2017.md | 3 +-- content/post/2018/2018.md | 3 +-- content/post/2019/2019.md | 3 +-- content/post/2020/2020.md | 3 +-- themes/brainbaking-minimal/layouts/_default/list.html | 2 +- 9 files changed, 9 insertions(+), 17 deletions(-) diff --git a/content/post/2013/2013.md b/content/post/2013/2013.md index 4e7ac737..8529a9a5 100644 --- a/content/post/2013/2013.md +++ b/content/post/2013/2013.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2013" -categories: - - archive +type: archive icontag: tag url: /post/2013/ disableComments: true diff --git a/content/post/2014/2014.md b/content/post/2014/2014.md index 9c5573b9..d4514cf5 100644 --- a/content/post/2014/2014.md +++ b/content/post/2014/2014.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2014" -categories: - - archive +type: archive icontag: tag url: /post/2014/ disableComments: true diff --git a/content/post/2015/2015.md b/content/post/2015/2015.md index 311f582b..426f8ac6 100644 --- a/content/post/2015/2015.md +++ b/content/post/2015/2015.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2015" -categories: - - archive +type: archive icontag: tag url: /post/2015/ disableComments: true diff --git a/content/post/2016/2016.md b/content/post/2016/2016.md index 06359238..788f3089 100644 --- a/content/post/2016/2016.md +++ b/content/post/2016/2016.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2016" -categories: - - archive +type: archive icontag: tag url: /post/2016/ disableComments: true diff --git a/content/post/2017/2017.md b/content/post/2017/2017.md index 91a2d1b0..673a3ed9 100644 --- a/content/post/2017/2017.md +++ b/content/post/2017/2017.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2017" -categories: - - archive +type: archive icontag: tag url: /post/2017/ disableComments: true diff --git a/content/post/2018/2018.md b/content/post/2018/2018.md index 7f7681dd..ed519723 100644 --- a/content/post/2018/2018.md +++ b/content/post/2018/2018.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2018" -categories: - - archive +type: archive icontag: tag url: /post/2018/ disableComments: true diff --git a/content/post/2019/2019.md b/content/post/2019/2019.md index a32a88af..e3c7c95a 100644 --- a/content/post/2019/2019.md +++ b/content/post/2019/2019.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2019" -categories: - - archive +type: archive icontag: tag url: /post/2019/ disableComments: true diff --git a/content/post/2020/2020.md b/content/post/2020/2020.md index 2349e8ce..047c81fd 100644 --- a/content/post/2020/2020.md +++ b/content/post/2020/2020.md @@ -1,7 +1,6 @@ --- title: "Archive by year: 2020" -categories: - - archive +type: archive icontag: tag url: /post/2020/ disableComments: true diff --git a/themes/brainbaking-minimal/layouts/_default/list.html b/themes/brainbaking-minimal/layouts/_default/list.html index 1ad036f1..5e8b40ac 100644 --- a/themes/brainbaking-minimal/layouts/_default/list.html +++ b/themes/brainbaking-minimal/layouts/_default/list.html @@ -12,7 +12,7 @@ {{ end }} - {{ $paginator := .Paginate (where .Data.Pages ".Params.categories" "ne" "archive") }} + {{ $paginator := .Paginate (where .Data.Pages ".Params.type" "ne" "archive") }} {{ if eq $paginator.PageNumber 1 }}