- 
                Notifications
    
You must be signed in to change notification settings  - Fork 288
 
Description
Looks like this plugin doesn't work if posts use categories.
My blog has the 4 categories:
- cycling
 - it
 - leatherwork
 - photo
 
Each post is just a HTML page inside the <category_name>/_posts/:
drwxr-xr-x cycling
drwxr-xr-x   _posts
-rw-r--r--     2020-05-17-thanks-for-living-ru.html
-rw-r--r--     2021-04-08-vk-cyclist-types-ru.html
-rw-r--r--     2021-04-12-balticstar-north-open-2021-ru.html
-rw-r--r--     2021-05-17-insled-open-ru.html
drwxr-xr-x it
drwxr-xr-x leatherwork
drwxr-xr-x   _posts
-rw-r--r--     2021-01-29-leatherwork-useful-links-ru.html
drwxr-xr-x photo
Also the each post has the corresponding category tag in the front-matter:
---
layout: post
title: Ссылки по кожевенному делу
category: leatherwork
date: 2021-02-04
lang: ru
comments: true
hidden:
  - related_posts
---
The Jekyll itself understands this structure and generate the next directory structure for my posts after running bundle exec jekyll build:
drwxr-xr-x cycling
drwxr-xr-x   2020
drwxr-xr-x     05
drwxr-xr-x       17
-rw-r--r--         thanks-for-living-ru.html
drwxr-xr-x   2021
drwxr-xr-x     04
drwxr-xr-x       08
-rw-r--r--         vk-cyclist-types-ru.html
drwxr-xr-x       12
-rw-r--r--         balticstar-north-open-2021-ru.html
drwxr-xr-x     05
drwxr-xr-x       17
-rw-r--r--         insled-open-ru.html
drwxr-xr-x it
drwxr-xr-x leatherwork
drwxr-xr-x   2021
drwxr-xr-x     02
drwxr-xr-x       04
-rw-r--r--         leatherwork-useful-links-ru.html
drwxr-xr-x photo
But the jekyll-paginate-v2 ignores this structure and didn't see any posts.
I add line with jekyll-paginate-v2 to my Gemfile:
group :jekyll_plugins do
  gem "jekyll-feed"
  gem "jekyll-seo-tag"
  gem "jekyll-sitemap"
  gem "jekyll-spaceship"
  gem "jekyll-minifier"
  gem "jekyll-paginate-v2"
end
And to the _config.yml:
plugins:
  - jekyll-feed
  - jekyll-seo-tag
  - jekyll-sitemap
  - jekyll-spaceship
  - jekyll-minifier
  - jekyll-paginate-v2
And add this configuration for the plugin:
pagination:
  enabled: true
  debug: true
  permalink: '/page/:num'
Also I add this to the front-matter in the /index.html:
---
layout: home
title: Home
banner: "/assets/images/home.jpg"
pagination:
  enabled: true
---
Result: the plugin doesn't see my blogposts:
drag0n@drag0n-laptop:~/rsync/blog $ bundle exec jekyll build
  Jekyll Spaceship: 🚀 Jekyll-Spaceship 0.10.2
  Jekyll Spaceship: 🎉 A Jekyll plugin to provide powerful supports.
  Jekyll Spaceship: 👉 https://github.com/jeffreytse/jekyll-spaceship
Configuration file: /home/drag0n/rsync/blog/_config.yml
  Jekyll Spaceship: 🗂  use table-processor
  Jekyll Spaceship: 🗂  use mathjax-processor
  Jekyll Spaceship: 🗂  use plantuml-processor
  Jekyll Spaceship: 🗂  use mermaid-processor
  Jekyll Spaceship: 🗂  use polyfill-processor
  Jekyll Spaceship: 🗂  use media-processor
  Jekyll Spaceship: 🗂  use emoji-processor
  Jekyll Spaceship: 🗂  use element-processor
            Source: /home/drag0n/rsync/blog
       Destination: /home/drag0n/rsync/blog/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
         AutoPages: Disabled/Not configured in site.config.
        Pagination: ----------------------------
        Pagination: Page: index.html
        Pagination:  Active configuration
        Pagination:   Enabled:          true
        Pagination:   Items per page:   10
        Pagination:   Permalink:        /page/:num
        Pagination:   Title:            :title - page :num
        Pagination:   Limit:            0
        Pagination:   Sort by:          date
        Pagination:   Sort reverse:     false
        Pagination:  Active Filters
        Pagination:   Collection:       posts
        Pagination:   Offset:           0
        Pagination:   Category:         [Not set]
        Pagination:   Tag:              [Not set]
        Pagination:   Locale:           [Not set]
        Pagination:  Filtering by: Category    0 => 0
        Pagination:  Filtering by: Tag         0 => 0
        Pagination:  Filtering by: Locale      0 => 0
        Pagination: Rolling through the date fields for all documents
        Pagination: Complete, processed 1 pagination page(s)
  Jekyll Spaceship: [TableProcessor] it/_posts/2024-07-07-thinkpad-x220-second-life-ru.html
  Jekyll Spaceship: [TableProcessor] it/_posts/2024-07-07-thinkpad-x220-second-life.html
  Jekyll Spaceship: [TableProcessor] it/_posts/2025-02-08-motorola-defy-2021-lineage-os-ru.html
  Jekyll Spaceship: [TableProcessor] it/_posts/2025-02-08-motorola-defy-2021-lineage-os.html
  Jekyll Spaceship: [EmojiProcessor] it/_posts/2025-03-30-freebsd-pkgs-wout-unwanted-deps.html
  Jekyll Spaceship: [TableProcessor] it/_posts/2025-06-30-my-emacs-configuration-common.html
  Jekyll Spaceship: [TableProcessor] it/_posts/2025-07-24-x11-configuration-simple.html
  Jekyll Spaceship: [TableProcessor] changelog.html
  Jekyll Spaceship: [TableProcessor] cv.html
                    done in 7.988 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
Also, the main page of my blog (after bundle exec jekyll serve) is empty. Variable paginate.posts is equals to 0.
What I tried to solve this:
- Specified the 
collection: allin theindex.htmlfrontmatter as described in https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#the-special-all-collection - Specified all my categories in the 
_config.ymlas described here: https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#filtering-categories - Tried to use configs and add a catalog 
categorieswith separate html files for each my category, like in https://github.com/sverrirs/jekyll-paginate-v2/tree/master/examples/02-category 
Nothing works. The result always the same:
        Pagination:  Filtering by: Category    0 => 0
        Pagination:  Filtering by: Tag         0 => 0
        Pagination:  Filtering by: Locale      0 => 0
        Pagination: Rolling through the date fields for all documents
        Pagination: Complete, processed 1 pagination page(s)
- Jekyll version: 4.4.1
 - jekyll-paginate-v2 version: 3.0.0
 - My changes to enable the jekyll-paginate-v2: https://codeberg.org/evgandr/my-blog-sources/commit/57fbbfc934a79ba6992522ffd894519fff19d5e6