- {{/* Range through the first three items of the section */}}
- {{ range (first 3 $section) }}
+ {{/* Range through the first $n_posts items of the section */}}
+ {{ range (first $n_posts $section) }}
{{ partial "summary-with-image.html" . }}
{{ end }}
- {{ if ge $section_count 4 }}
+ {{ if ge $section_count (add $n_posts 1) }}