Exclude categories from paginator

In my home page I am listing the first 15 articles with this code:

{{ range first 15 .Data.Pages }}
  {{ .Render "li" }}
{{ end }}

I want to exclude any pages found in the root of my ./content directory.

A) How can I modify this to exclude any md files in the root path of ./content?

B) Alternatively I can move the md files in the root of the ./content path to a specific exclude subfolder if that would make it possible. Anyone have any ideas?

Your title doesn’t match the question, but you can either turn it around and include types or section in the where clause, or set a type on the root content and exclude on that.

Thanks bep. Can you give me an example on how to exclude a type? Thank you!