{{ define "main" }} {{ if .Parent.IsHome }} {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) }} {{ else }} {{$.Scratch.Set "blog-pages" .Pages }} {{ end }} {{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}} {{ $pageGroups := $pag.PageGroups}} {{ if eq $pag.PageNumber 1 }} {{ end }}
{{ .Date.Format ($.Param "time_format_blog") }} {{ T "ui_in"}} {{ .CurrentSection.LinkTitle }}
{{ partial "featured-image.html" (dict "p" . "w" 250 "h" 125 "class" "float-left mr-3 pt-1 d-none d-md-block") }}{{ .Plain | safeHTML | truncate 250 }}