{{ define "main" }} {{ $pagination := .Paginate (where .Site.RegularPages "Params.hidden" "!=" true) }} {{ partial "pagination.html" $pagination }} {{ if eq $pagination.PageNumber 1 }} {{ partial "content.html" .Content }} {{ end }} {{ $scratch := newScratch }} {{ $scratch.Add "i" 0 }} {{ range $pagination.Pages }} {{ if or ($scratch.Get "i" | ne 0) (eq $pagination.PageNumber 1) }}


{{ end }} {{ $scratch.Set "i" ($scratch.Get "i" | add 1) }}

{{ partial "content.html" .Title }}

{{ partial "metadata.html" . }}

{{ partial "content.html" .Content | truncate 500 }} Read more »
{{ end }} {{ partial "pagination.html" $pagination }} {{ end }}