In my contents folder I have a folder “publications” and I want to show the latest 10 items in a page called publication and 3 of them in home page. The publication page has its own template in layout/section.
I have the following code in my blog template
{{ {{ range (.Paginator 4).Pages.ByPublishDate.Reverse }}
hello world
{{ end }}
The code works fine in my home page but not in section templates.