# Minimal mistakes: Is it possible to catgorise pages?

**URL:** <https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709>\
**Category:** Help\
**Created:** [July 14, 2020, 6:00am UTC](https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709 "2020-07-14T06:00:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fraba](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@fraba](https://talk.jekyllrb.com/u/fraba)\
**Post date:** [July 14, 2020, 6:00am UTC](https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709/1 "2020-07-14T06:00:28Z")

</div>

I have set up a Minimal Mistakes website with Github Pages https://dsm-uts.github.io/data-code/ from [[https://github.com/DSM-UTS/data-code](https://github.com/DSM-UTS/data-code)](this repository).

I want to use categories and tags also with pages (I am not interested in using posts since the page is for a university course). I can successfully add files to the `_posts` directory but when I add a file to the `_page` directory with the same Front Matter used in a post the page is not searchable and doesn’t appear in the category page.

I tried adding `include: ['_pages']` to my config file but without any result.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [July 14, 2020, 9:13am UTC](https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709/2 "2020-07-14T09:13:12Z")

</div>

Make sure include config lacks the s if your directory lacks it.

Have a look at the forums. There are at least two discussions around categories or tags on non post pages

You can use some jekyll templating to iterate over categories. There is a jquery solution too.

> [@Filter Products by Categories](https://talk.jekyllrb.com/t/filter-products-by-categories/4608):
>
> I have categories defined in the front matter of all my products in the \_products folder. Is there a way I can setup buttons or links to click to filter my products page (index.html) by the categories define? Thanks,

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [July 14, 2020, 9:14am UTC](https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709/3 "2020-07-14T09:14:22Z")

</div>

Also there are plugins (won’t work on gh pages without CI effort on GH Actions)

> **[field-theory/jekyll-category-pages](https://github.com/field-theory/jekyll-category-pages)**
>
> Add category index pages with and without pagination - field-theory/jekyll-category-pages

And you can find more plugins and blog post articles

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [July 14, 2020, 9:20am UTC](https://talk.jekyllrb.com/t/minimal-mistakes-is-it-possible-to-catgorise-pages/4709/4 "2020-07-14T09:20:54Z")

</div>

My solution on this question was to use Collections - for example `_cars` as a folder and `_dogs` as a folder and you can iterate over items in each (check Collections in the Jekyll docs)

That approach is more elegant in a way than post categories as you have to update every post in a category in order to rename a category. But if you use a folder and configure you collection in config YAML file then it is easier to rename.

Tags are not so easy because a page can have tags so collections don’t make sense. That won’t affect you but it will give context for the links above since solving tags and categories is very different
