Range first

How the function range determines which is first in expression e.g. “range first”?
By file creation, modification, access time, or how?
How do I make some file the latest to get in the “first”?
I have a function
{{ range first 8 .Site.RegularPages }}
but can’t understand how it finds the first ones.
In my case it does not range the newest files - while this is exactly what it should do.

It’s ordered by Weight, Date, LinkTitle and then full file path.

I’m guessing you have not set your front matter dates.

Also see Configure Hugo | Hugo

@bep, Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.