{{ partial "header" . }}
{{ $latestcount := .Site.Params.latestcount | default 5 }}
{{ partial "title" . }}
<section>
	<h4>{{ T "latestPost" }}</h4>
	<ul class="no-bullet">
		{{- range (first $latestcount (where .Pages "Section" "blog")) -}}
		{{ partial "li" . }}
		{{- end -}}
	</ul>
</section>
<section>
	<h4>{{ T "latestWork" }}</h4>
	<ul class="no-bullet">
		{{- range (first $latestcount (where .Pages "Section" "work")) -}}
		{{ partial "li" . }}
		{{- end -}}
	</ul>
</section>
{{ partial "footer" . }}

{{ partial "header" . }}
{{ partial "title" . }}
{{ $latestcount := .Site.Params.LatestCount | default 3 }}
<section>
	<h4>{{ T "latestPost" }}</h4>
	<ul class="no-bullet">
		{{- range (first $latestcount (where .Pages "Section" "blog")) -}}
		{{ partial "li" . }}
		{{- end -}}
	</ul>
</section>
<section>
	<h4>{{ T "latestWork" }}</h4>
	<ul class="no-bullet">
		{{- range (first $latestcount (where .Pages "Section" "work")) -}}
		{{ partial "li" . }}
		{{- end -}}
	</ul>
</section>
{{ partial "footer" . }}

Change default LatestCount to 3
Change default LatestCount to 3
