Featured idea: .hugoignore

Apparently, Eleventy has a .eleventyignore file (see here), so you can ignore groups of content files when building. In development, it would be nice for me to be able to say “ignore content from before 2021” to get faster builds. Something like

# .hugoignore
/content/news/*
!/content/news/_index.md
!/content/news/2021-*

Would this work?

https://gohugo.io/getting-started/configuration/#ignore-content-and-data-files-when-rendering

Haha, @bep is always two steps ahead.

Also note that in the upcoming Hugo 0.89.0, you can do this on a much more fine grained level and for all the file systems (including /static):