From 252402952aca0cacee3d96bd8903a86c15ba6a1e Mon Sep 17 00:00:00 2001 From: kei Date: Thu, 8 Aug 2024 16:29:33 +0200 Subject: [PATCH] Update README-GENERATOR.md Add branch fix mention in Common Issues to resolve pagination layout overwriting each other --- README-GENERATOR.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README-GENERATOR.md b/README-GENERATOR.md index 829f70c..2464e3c 100644 --- a/README-GENERATOR.md +++ b/README-GENERATOR.md @@ -666,3 +666,17 @@ pagination: ``` Make absolutely sure that your pagination permalink paths do not clash with any other paths in your final site. For simplicity it is recommended that you keep all custom pagination (non root index.html) in a single or multiple separate sub folders under your site root. + +There is also a known issue in Jekyll v4 that affects `jekyll-paginate-v2`, where different pagination pages’ layouts may not be rendered correctly and that only the first pagination layout in cache is used (reference: [issue #209](https://github.com/sverrirs/jekyll-paginate-v2/issues/209)). To temporarily resolve this issue, use the fix provided in [issue #195](https://github.com/sverrirs/jekyll-paginate-v2/pull/195) or [issue #182](https://github.com/sverrirs/jekyll-paginate-v2/pull/182) instead. + +In your `Gemfile`: +```ruby +# Before change +gem 'jekyll-paginate-v2' + +# After change, fix option 1 from issue #195 +gem 'jekyll-paginate-v2', git: 'https://github.com/jameshi16/jekyll-paginate-v2.git', branch: 'cache-mismatch-error' + +# OR after change, fix option 2 from #182 +gem 'jekyll-paginate-v2', git: 'https://github.com/mohkale/jekyll-paginate-v2.git', branch: 'liquid-cache-bypass' +```