Hi All,
I have a page where the blog landing showcases the latest three posts with the latest one being on the top in one column and the other two below it in a split of two columns, a crude example of what I mean is below.
[ LATEST ARTICLE 3 ]
[ARTICLE 2] [ARTICLE 1]
I am using the range tag as follows
{{ range first 1 .Site.Pages }}{{ if eq .Type “blog” }} {{ .Title }} {{ end }}{{ end }}
And the above fetches the latest blog post title perfectly.
The second call is as follows
{{ range after 1 .Site.Pages }}{{ if eq .Type “blog” }} {{ .Title }} {{ end }}{{ end }}
This returns the other articles with the offset of 1, it works fine however I would like to limit to just show 2 articles. In which case the code would be the below, however with it I lose the offset.
{{ range first 2 .Site.Pages }}{{ if eq .Type “blog” }} {{ .Title }} {{ end }}{{ end }}
Is there a way to include both the offset ability and a limit in the same call?
Cheers
C