# Jekyll collection: category page issue

**URL:** <https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081>\
**Category:** Help\
**Created:** [October 17, 2017, 7:54pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081 "2017-10-17T19:54:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drakkar](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Drakkar](https://talk.jekyllrb.com/u/Drakkar)\
**Post date:** [October 17, 2017, 7:54pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081/1 "2017-10-17T19:54:50Z")

</div>

Hello!

I made a collection in jekyll and named it “category” (screenshot-1), that i can make pages with categories and there was an opportunity to go to the category page in the post on the appropriate category by the link + it is possible to sort by the flag and create the permalink that I need.

Here are my settings in \_config.yaml and front metter from collections files category\_name.md  
**screenshot-1** [http://prntscr.com/gynaw7](http://prntscr.com/gynaw7)

```
collections:
  category:
    output: true
    
defaults:
  - scope:
      path: ""
      type: category
    values:
      layout: "category"

---
layout: category
tag: '1992'
flag: year
permalink: "/category/year/1992/"
---

```

**The issue** - when i have 21 files category\_name.md in collections folder, Jekyll build it about 1.089s; when i have 27 files - 15,059s; when i have 33 and above gives an error ( **screenshot-2** ) and this is not always default.html it happens index.html or error:  
**Jekyll liquid Exception: Failed to allocate memory in default.html/index.html**

**screenshot-2** [http://prntscr.com/gyn8px](http://prntscr.com/gyn8px)

As I understand there is not enough memory to genegate build or there has some limit to files, which i can create in my collection?

Tell me please how to solve this issue I will be glad to any prompts.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 17, 2017, 8:42pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081/2 "2017-10-17T20:42:51Z")

</div>

no idea if this is your problem, but category is a thing in jekyll already, the way you are using it may be conflicting with it.

Can you rename your collection to something else? category is for categories in posts already so maybe it doesn’t like it.

---

<div class="post-metadata">

**Author:** ![Drakkar](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Drakkar](https://talk.jekyllrb.com/u/Drakkar)\
**Post date:** [October 17, 2017, 8:56pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081/3 "2017-10-17T20:56:54Z")

</div>

i renamed the collection and it works good, thank you!

---

<div class="post-metadata">

**Author:** ![Drakkar](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Drakkar](https://talk.jekyllrb.com/u/Drakkar)\
**Post date:** [October 17, 2017, 9:09pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081/4 "2017-10-17T21:09:07Z")

</div>

oh no, it looked like it was a cache:( the issue still exists

---

<div class="post-metadata">

**Author:** ![Drakkar](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Drakkar](https://talk.jekyllrb.com/u/Drakkar)\
**Post date:** [October 17, 2017, 9:24pm UTC](https://talk.jekyllrb.com/t/jekyll-collection-category-page-issue/1081/5 "2017-10-17T21:24:47Z")

</div>

my bad, everythink works good.
