Jekyll archives, but for any collection

I was trying to create an archives like page, but for collections other than posts. Currently jekyll-archives only supports posts, so I decided to create a fork of it.

jekyll-archives-v2 is basically jekyll-archives, but for any collection. To use it is easy. Here is an example of what a _config.yml with jekyll-archives would look like:

jekyll-archives:
  enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
  permalinks:
    year: "/blog/:year/"
    tag: "/blog/tag/:name/"
    category: "/blog/category/:name/"

and with jekyll-archives-v2

jekyll-archives:
  posts:
    enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
    permalinks:
      year: "/blog/:year/"
      tag: "/blog/tag/:name/"
      category: "/blog/category/:name/"
  books:
    enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
    # by default, the permalinks will start with /collection/, in this case /books/
3 Likes