Select the first few records from various collections

Hi, I am trying out a various static site generators (now tring Sculpin).

Suppose I have a few collections: posts, quotes, books, movies. Each may contain, as time goes by, many many items.

I am to develop an entry page to list the latest posts, books, movies. So in that entry page, I will need to display the latest 5 posts, latest 6 books, etc.

Is it possible to achieve this in Hugo? I would like to see a code snippet before I go and use Hugo for my site generation.

Yes, this is possible.

See http://gohugo.io for links to doc + sites that use Hugo for code snippets.

What you most likely would use is Paginators, see:

But there is also the first function, see docs.