# Exclude configuration in \_config.yml

**URL:** <https://talk.jekyllrb.com/t/exclude-configuration-in-config-yml/2311>\
**Category:** Help\
**Created:** [October 31, 2018, 6:27pm UTC](https://talk.jekyllrb.com/t/exclude-configuration-in-config-yml/2311 "2018-10-31T18:27:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iloveip](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/iloveip/32/1038_2.png) [@iloveip](https://talk.jekyllrb.com/u/iloveip)\
**Post date:** [October 31, 2018, 6:27pm UTC](https://talk.jekyllrb.com/t/exclude-configuration-in-config-yml/2311/1 "2018-10-31T18:27:31Z")

</div>

What are the best practices for `exclude` in `_config.yml`? Foe example, in my `_config.yml` file I have:

```auto
exclude: [Gemfile, Gemfile.lock, gems, node_modules]

```

Is there anything else I should add?

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [October 31, 2018, 8:22pm UTC](https://talk.jekyllrb.com/t/exclude-configuration-in-config-yml/2311/2 "2018-10-31T20:22:06Z")

</div>

The ones Jekyll sets with `jekyll new` are a good start.

> <https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml#L37-L47>
