# Default front matter in \_config.yml

**URL:** <https://talk.jekyllrb.com/t/default-front-matter-in-config-yml/4814>\
**Category:** Help\
**Created:** [August 5, 2020, 1:49pm UTC](https://talk.jekyllrb.com/t/default-front-matter-in-config-yml/4814 "2020-08-05T13:49:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serneum](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/serneum/32/2714_2.png) [@Serneum](https://talk.jekyllrb.com/u/Serneum)\
**Post date:** [August 5, 2020, 1:49pm UTC](https://talk.jekyllrb.com/t/default-front-matter-in-config-yml/4814/1 "2020-08-05T13:49:19Z")

</div>

I’m working on setting up a small project with Jekyll for fun, and I’m trying to work with `jekyll-paginate-v2` to help me organize some posts. I’ve got the following in my `_config.yml`:

```auto
collections:
  tyov:
    output: true
    permalink: /tyov/:path/

defaults:
  -
    scope:
      path: ""
      type: "posts"
    values:
      pagination:
        enabled: true
        permalink: /:num/
        sort_reverse: false
  -
    scope:
      path: "_tyov/all"
      type: "posts"
    values:
      pagination:
        collection: tyov

```

When I create a new post, I use `jekyll-compose` and run

```auto
bundle exec jekyll compose "My Post" --collection "tyov/all"

```

When the file is generated, it doesn’t seem to contain any of the default front matter for pagination:

```auto
---
layout: post
title: My Post
date: 2020-08-05 08:40 -0500
---

```

I’ve also tried changing the path to remove the underscore in front of `tyov`, remove `/all` from the path, and I’ve tried changing the `type` from `posts` to `tyov` since that is the name of my collection. None of those seem to work. As a side note, I am also running all of this in Docker and I’ve tried restarting the container to get things working as well with no luck.

I feel like I’m missing something simple, and any guidance would be appreciated.

---

<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:** [August 5, 2020, 3:03pm UTC](https://talk.jekyllrb.com/t/default-front-matter-in-config-yml/4814/2 "2020-08-05T15:03:11Z")

</div>

the defaults in the config are virtual - they don’t show on the actual file.

I don’t use paginate so not sure if the defaults work with that or not.

---

<div class="post-metadata">

**Author:** ![Serneum](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/serneum/32/2714_2.png) [@Serneum](https://talk.jekyllrb.com/u/Serneum)\
**Post date:** [August 5, 2020, 5:35pm UTC](https://talk.jekyllrb.com/t/default-front-matter-in-config-yml/4814/3 "2020-08-05T17:35:30Z")

</div>

Noted. I’ll have to play around with it a bit to see if it works or not. All of the examples had categories or tags, so I assumed they were generated and/or required
