Show only pages of a particular section on the home page

My content directory contains a few subdirectories. Pages of all of those subdirectories are shown on my frontpage, I’d like to only show pages from post directory.



Articles and CV are supposed to be accessible only via links from other pages.

If you can share the homepage template source code, it will help, but probably you can do something like this:

{{ range (where .Site.RegularPages.ByDate "Section" "post") | first 4 }}
   //your content
1 Like

That did it - you pointed me into creating my own layouts/index.html and using above code snippet would limit the posts shown on my home page.

1 Like