Show a different number of posts on first page

{{ $p := where site.RegularPages "Type" "post" }}
{{ $p = slice site.Home | append $p }}

{{ $firstPage := true }}
{{ range (.Paginate $p 12).Pages }}
  {{ if not .IsHome }}
    {{ $class := "" }}
    {{ if and (eq $.Paginator.PageNumber 1) $firstPage }}
      {{ $class = "first-page-on-first-pager" }}
    {{ end }}
    <h2{{ with $class }} class="{{ . }}"{{ end }}><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
    {{ $firstPage = false }}
  {{ end }}
{{ end }}

{{ template "_internal/pagination.html" . }}