{{- $paginator := . -}} {{- if gt $paginator.TotalPages 0 -}} {{- $dateFormat := site.Params.dateFormat -}} {{- if not $dateFormat -}}{{- $dateFormat = "2006-01-02" -}}{{- end -}} {{- range $index, $page := $paginator.Pages -}}
{{- $page.Summary | plainify | safeHTML -}}{{- if $page.Truncated -}}…{{- T "more" -}}{{- end -}}
{{- end -}} {{- $relURL := $page.RelPermalink -}} {{- $imgs := $page.Params.imgs -}} {{- with $page.Params.imgs -}} {{- $imgCount := len $imgs -}} {{- range $imgs -}} {{- $imgurl := lower $page -}} {{- if and (not (hasPrefix $imgurl "http://")) (not (hasPrefix $imgurl "https://")) -}} {{- $imgurl = path.Join $relURL $page -}} {{- end -}} {{- end -}} {{- end -}} {{- partial "note-labels.html" $page -}}